Applications communicate with the Enqueue Server through the Application Locking Service and need access to certain resources of this service at design time and at runtime.
●
To compile
your projects at design time, you need access to the following libraries:
applocking.jar
frame.jar
exception.jar
For more information about how you set the Java class path and compile the project in the SAP NetWeaver Developer Studio, refer to Referencing Libraries.
● At runtime, applications need a hard application reference to the Application Locking Service. To declare the reference for J2EE applications, you use the application-j2ee-engine.xml descriptor. For more information about how you can set application references using the SAP NetWeaver Developer Studio, refer to Editing Runtime References in the application-j2ee-engine.xml.
To lock application components programmatically, you acquire locks according to the agreed locking protocol and use the TableLocking API or LogicalLocking API.