Integrates with Hibernate transaction managemnet abstraction and Compass transactions. Uses Hibernate
support for "context session" including its support for registration of synchronizations with the current
transaction.
Will start a Hibernate transaction of none exists, and will join an existing one if one is already
in progress. If the Hibernate transcation is started by this transaction factory, it will also be committed
by it.
In order to use the transaction factory, it must be configured with Compass, as well as calling
HibernateSyncTransactionFactory.setSessionFactory(org.hibernate.SessionFactory) before the Compass instance is created.
author: kimchy |