Optional: Open the J2EE perspective to work with J2EE projects. Click Window > Open Perspective > Other >
J2EE .
Optional: Open the Project Explorer view. Click Window > Show View > Project Explorer . Another helpful view is the Navigator view (Window > Show View > Navigator ).
Create a new application EAR file or edit an existing one. For example, to change attributes of an existing application, use the import wizard to import an EAR file. To start the import wizard:
Select File > Import > EAR file > Next
Select the EAR file.
Create a WebSphere Application Server v6.0 type of Server Runtime. Select
New to open the New Server Runtime Wizard and follow the instructions.
In the Target server field, select WebSphere Application Server v6.0 type of Server Runtime.
Select Finish
In the Project Explorer view of the J2EE perspective,
right-click Deployment Descriptor: EJB Module Name under the EJB module
for the bean instance, then select Open With > Deployment Descriptor Editor . A property dialog notebook for the EJB project is displayed in the property pane.
Select the Access tab.
In the Access Intent for Entities 2.x (Bean Level) panel, select the name of the bean.
On the right side of the Access Intent for Entities 2.x (Method Level) panel, select Add. The Add Access Intent panel displays.
In the Access intent name field, select wsPessimisticUpdate from the drop-down list.
Optional: Enter a Description to help you remember what this policy does.
Optional: Change the Persistence Option setting
Click Finish . The access intent policy for the entity bean is shown in the Access Intent for Entities 2.x (Bean Level) panel