+

Search Tips   |   Advanced Search

 

Set the run time for deferred commands with the assembly tools

 

To set the run time for deferred commands using the assembly tools, follow these steps.

 

Procedure

  1. Start the Application Server Toolkit.

  2. On the Project Explorer tab, click EJB Modules > project > ejbModule > META-INF > ejb-jar.xml The EJB Deployment Descriptor window appears.

  3. 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)

  4. Select the Bean or Method level. Another access intent window appears where you can set the properties you wish to use.

  5. Use the dropdown list to select the Access intent name.

     

  6. Optional: Enter a description.

  7. Check the Persistence Option box.

  8. Check the Deferred Operation box.

  9. 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.

  10. Select Finish.



EJB modules