Network Deployment (Distributed operating systems), v8.0 > Develop and deploying applications > Develop EJB applications > Develop enterprise beans


Set the run time for deferred create with JVM arguments

For Container Managed Persistence (CMP) to happen during the ejbCreate, the EJB container can create the representation of the entity in the database immediately, or defer it to a later time. When you choose the defer option, the run time defers ejbCreate, or the equivalent database persistence request, until it is needed. This can be at the end of the transaction, or when a flush is needed for finders related to this EJB type. By doing this you can reduce two round trips for the newly created entity (insert and update) to one (insert).


Procedure

  1. Open the admin console.

  2. Select Servers.

  3. Select Application Servers.

  4. Select the server to configure.

  5. In the Additional Properties area, select Process Definition.

  6. In the Additional Properties area, select Java Virtual Machine.
  7. Update the Generic JVM arguments with -Dcom.ibm.ws.pm.deferredcreate=true.

+

Search Tips   |   Advanced Search