[Version 5.0.2 and later]Applying access intent policies to methods

Why and when to perform this task

You apply an access intent policy to a method, or set of methods, in an application's entity beans through the Assembly Toolkit.

Steps for this task

  1. Start the Assembly Toolkit.
  2. (Optional)   Open the J2EE perspective to work with J2EE projects. Click Window > Open Perspective > Other > J2EE.
  3. (Optional)   Open the J2EE Hierarchy view. Click Window > Show View > J2EE Hierarchy. Other helpful views include the Project Navigator view (Window > Show View > Other > J2EE > Project Navigator) and the Navigator view (Window > Show View > Navigator).
  4. Select the Access tab.
  5. On the right side of the Access Intent for Entities 2.x (Method Level) panel, select Add.
    The Add Access Intent panel displays.
  6. Specify the Name for your new intent policy.
  7. Select the Access intent name from the drop-down list.
  8. Enter a Description to help you remember what this policy does.
  9. (Optional)   Select Read Ahead Hint.
    A single access intent read ahead hint might not refer to the same bean type in more than one relationship. For example, if a Department enterprise bean has a relationship employees with the Employee enterprise bean, and also has a relationship manager with the Employee enterprise bean, then a read ahead hint cannot specify both employees and manager.
  10. Click Next.
    The next Add Access Intent panel displays, with optional attributes.
  11. (Optional)   Decide whether or not to overwrite these optional access intent attributes. Click on those you want to change.
  12. Click Next.
    The next Add Access Intent panel, with a list of Enterprise Beans, displays.
  13. Select one or more Enterprise Beans from the list.

    Note: If you selected Read Ahead Hint in an earlier step, you can only select ONE bean at this step.

  14. Click Next.
    The next Add Access Intent panel, with a list of methods, displays.
  15. Select the methods you want to use.
  16. If you DID NOT select Read Ahead Hint in an earlier step, click Finish.
    If you DID select the Read Ahead Hint option, you can click Next to specify your Read Ahead Hint for the specified bean. The next Add Access Intent panel, with a list of EJB preload paths, displays.
  17. Edit the EJB preload path by selecting relationship roles from the Relationship roles: window.
  18. Click Finish.
    A new entry is created in the Access Intent for Entities 2.x (Method Level) panel

Related concepts
Access intent policies
Related tasks
Using access intent policies
Related reference
Access intent assembly settings[5.0 only][Version 5.0.1][Version 5.0.2]
Access intent -- isolation levels and update locks



Searchable topic ID:   taxi_applypolicies
Last updated: Jun 21, 2007 4:55:42 PM CDT    WebSphere Application Server Network Deployment, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/tejb_axiapp.html

Library | Support | Terms of Use | Feedback