WebSphere Application Server Network Deployment, Version 6.0.x     Operating Systems: AIX, HP-UX, Linux, Solaris, Windows

Applying access intent policies to beans

Why and when to perform this task

You apply an access intent policy to an application's entity beans through the assembly tools.
Note: This is the preferred technique to define access intent policies. Method level access intent is deprecated in Version 6.0.

Steps for this task

  1. Start the Application Server Toolkit.
  2. Optional: Open the J2EE perspective to work with J2EE projects. Click Window > Open Perspective > Other > J2EE.
  3. Optional: Open the Project Explorer view. Click Window > Show View > Project Explorer. Another helpful view is the Navigator view (Window > Show View > Navigator).
  4. 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:
    1. Select File > Import > EAR file > Next
    2. Select the EAR file.
    3. Create a WebSphere Application Server v6.0 type of Server Runtime. Select New to open the New Server Runtime Wizard and follow the instructions.
    4. In the Target server field, select WebSphere Application Server v6.0 type of Server Runtime.
    5. Select Finish
  5. 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.
  6. Select the Access tab.
  7. In the Access Intent for Entities 2.x (Bean Level) panel, select the name of the bean.
  8. On the right side of the Access Intent for Entities 2.x (Method Level) panel, select Add. The Add Access Intent panel displays.
  9. In the Access intent name field, select wsPessimisticUpdate from the drop-down list.
  10. Optional: Enter a Description to help you remember what this policy does.
  11. Optional: Change the Persistence Option setting
  12. Click Finish. The access intent policy for the entity bean is shown in the Access Intent for Entities 2.x (Bean Level) panel



Related concepts
Access intent policies

Related tasks
Using access intent policies

Related reference
Access intent -- isolation levels and update locks

Task topic    

Terms of Use | Feedback

Last updated: Mar 17, 2005 4:28:29 AM CST
http://publib.boulder.ibm.com/infocenter/ws60help/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/tejb_axibpp.html

© Copyright IBM Corporation 2004, 2005. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)