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

  1. In the Deployment Descriptor editor, select the Bean tab.

  2. In the Concurrency Control section, select Enable optimistic locking.

  3. Save your work and then close the Deployment Descriptor editor.

  4. 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