Apply profile-scoped access intent policies to entity beans
Overview
Configure entities with access intent for an application profile
Procedure
- Start the Application Server Toolkit.
- 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 WAS 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 the Deployment Descriptor: EJB Module Name under the EJB module for the application profile instance, then select Open With > Deployment Descriptor Editor. A property dialog notebook for the EJB project is displayed in the property pane.
- Select the Extended Access tab.
- Select the application profile for which you want to specify the access intent.
- Beneath the Access Intent for Entities 2.x (Profile Level) panel, select Add...
- Select the entities to configure and click Next....
- Select the access intent policy to apply. Select Read Ahead Hint if a read ahead hint is desired.
- Select Next.
- Optional: Specify the collection scope
- Transaction
- This is the default. Collections of entities cannot be used beyond the scope of the transaction in which you create the collection.
- ActivitySession
- Collections of entities cannot be used beyond the scope of the ActivitySession in which you create the collection. The collection can be used in a new transaction if that transaction is nested under the original ActivitySession, although you might have to reload the object by querying the underlying data store.
- Optional: Specify the collection increment. Specify a valid integer to define the chunks that populate a remote collection. This value only applies to remote collections and is ignored by local collections. The default for access types that result in U locks is 1. Otherwise, the default is 25.
- Optional:
- Specify the resource manager prefetch increment. Specify a valid integer to set as the fetch size on the JDBC statement when you execute queries for a bean type. The default is 0.
- Select Next.
- If you selected read ahead, choose the preload path.
- Select Finish to apply.
- Select OK.
Related Tasks
Automatically configuring application profiles and tasks