Deferred Create for container managed persistence

The specification for Enterprise Java Beans 2.x states that for Container Managed Persistence during the ejbCreate, the container can create the representation of the entity in the database immediately, or defer it to a later time.

The WebSphere Application Server version 5.0.2 enables you to take advantage of this specification. One can turn this option on from the EJB CMP side. When you choose this option, the runtime 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).


Setting the run time for deferred create

 

WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.