This method starts a transaction on the persistent storage - which is
nothing to do with JMS or XA transactions - its purely a mechanism to
perform multiple writes to a persistent store in 1 transaction as a
performance optimization.

beginTransaction

This method starts a transaction on the persistent storage - which is
nothing to do with JMS or XA transactions - its purely a mechanism to
perform multiple writes to a persistent store in 1 transaction as a
performance optimization.

Typically one transaction will require one disk synchronization point and
so for real high performance its usually faster to perform many writes
within the same transaction to minimize latency caused by disk
synchronization. This is especially true when using tools like Berkeley
Db or embedded JDBC servers.