Setting the optimistic locking option of the bean
If your bean will use optimistic locking, set the optimistic locking option in the deployment descriptor.
Before you begin
Procedure
- In the Deployment Descriptor editor, select the Bean tab.
- Select your bean and select Enable optimistic locking in the Concurrency Control section.
- Save your work and then close the Deployment Descriptor editor.
- Proceed to modifying the entity context fields and methods.