Adding bean-level access intent for EJB 2.0 entity beans
Access intent for EJB 2.0 entities is the replacement in the EJB 2.0 specification for the EJB 1.0 access intents and EJB 1.0 isolation levels.
There are two general methods for adding access intent to EJB 2.0 enterprise beans:
- Default access intent (bean level): this default method for handling access intent based on the bean level should be used in most cases.
- Method-level access intent: this advanced method for handling access intent based on methods should only be used in advanced situations.
To add default access intent (bean level) to an EJB 2.0 enterprise bean:
- In the Project Explorer view, right-click the desired EJB module, and click select Open With > Deployment Descriptor Editor from the pop-up menu.
- On the Access page of the editor, click the Add button in the Default Access Intent for CMPs 2.x (Bean Level) section. The Add Access Intent wizard appears.
- In the Access intent name field, select an access intent type from the drop-down list.
- Type a description for the new access intent.
- Click Finish.
The access intent is added. To remove the access intent, select it and click the Remove button.