Batched commands for container managed persistence<?Pub Caret>

Batched commands for container managed persistence

From JDBC 2.0 on, PreparedStatement objects can maintain a list of commands that can be submitted together as a batch. Instead of multiple database round trips, there is only one database round trip for all the batched persistence requests.

You can enable the use of this feature for EJB container managed persistence. When you do, the run time defers ejbStore/ejbCreate/ejbRemove or the equivalent database persistence requests (insert/update/delete) until they are needed. This can be at the end of the transaction, or when a flush is needed for finders related to this EJB type. When the persistence operation finally happens, run time accumulates the database requests and uses JDBC PreparedStatement batch operation to make a single JDBC call for multiple rows of the same operation.

The WebSphere Application Server version 6.0 enables you to make the same settings using the Application Server Toolkit (AST).


Sub-topics
Setting the run time for batched commands with JVM arguments
Setting the run time for batched commands with the