To set the run time for deferred commands using the assembly tools,
follow these steps.
Procedure
- Start the Application Server Toolkit.
- On the Project Explorer tab, click EJB Modules > project > ejbModule > META-INF > ejb-jar.xml
The EJB Deployment Descriptor window appears.
- Select the Access tab. The Add Access Intent
window appears. There are two areas of the panel that deal with adding access
intent:
- Default Access Intent for Entities 2.x (Bean Level)
- Access Intent for Entities 2.x (Method Level)
- Select the Bean or Method level. Another access intent
window appears where you can set the properties you wish to use.
- Use the dropdown list to select the Access intent name.
- Optional: Enter a description.
- Check the Persistence Option box.
- Check the Deferred Operation box.
- Use the dropdown list to select your choice for deferred operation.
You have three options for deferred operation:
- NONE
- Nothing is deferred.
- CREATE_ONLY
- Only ejbCreate commands are deferred until the next ejbStore occurs to
create row in database.
- ALL
- All ejbCreate, ejbStore, and ejbRemove commands are deferred until a flush
is needed, which is either before a finder method or before transaction completion.
- Select Finish.