- Start the
Assembly Toolkit.
- (Optional)
Open the J2EE perspective to work with J2EE
projects. Click Window > Open Perspective > Other > J2EE.
- (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).
- Select the Access tab.
- On the right side of the Access Intent for Entities 2.x (Method
Level) panel, select Add.
The Add Access Intent panel
displays.
- Specify the Name for your new intent policy.
- Select the Access intent name from the drop-down list.
- Enter a Description to help you remember what this policy
does.
- (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.
- Click Next.
The next Add Access Intent panel
displays, with optional attributes.
- (Optional)
Decide whether or not to overwrite these
optional access intent attributes. Click on those you want to change.
- Click Next.
The next Add Access Intent panel,
with a list of Enterprise Beans, displays.
- 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.
- Click Next.
The next Add Access Intent panel,
with a list of methods, displays.
- Select the methods you want to use.
- 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.
- Edit the EJB preload path by selecting relationship roles from
the Relationship roles: window.
- Click Finish.
A new entry is created in the Access
Intent for Entities 2.x (Method Level) panel