Set the optimistic locking option of the bean
If your bean will use optimistic locking, set the optimistic locking option in the deployment descriptor.Prerequisite You have set the security role of the bean
- In the Deployment Descriptor editor, select the Bean tab.
- In the Concurrency Control section, select Enable optimistic locking.
- Save your work and then close the Deployment Descriptor editor.
- Proceed to modifying the entity context fields and methods.
Previous topic:Set the security role of the bean
Next topic:Modifying the entity context fields and methods
Related tasks
Create new entity beans