yturhan
06-19-2007, 05:38 PM
Hi,
I have a problem with hibernate session when using Two Phase Commit transactions.
I use Spring.Data.TxScopeTransactionManager object as platform transaction manager and diferent sessionfactory objects for each different databases and different DAO objects associated with different session factories. I want to control hibernate sessions within manager methods, like HibernateTransactionManager but the hibernate session close inside the manager methods when I use Spring.Data.TxScopeTransactionManager object.
Is there any way to keep alive the hibernate session until manager methods return when using
two phase commit transactions?
I have a problem with hibernate session when using Two Phase Commit transactions.
I use Spring.Data.TxScopeTransactionManager object as platform transaction manager and diferent sessionfactory objects for each different databases and different DAO objects associated with different session factories. I want to control hibernate sessions within manager methods, like HibernateTransactionManager but the hibernate session close inside the manager methods when I use Spring.Data.TxScopeTransactionManager object.
Is there any way to keep alive the hibernate session until manager methods return when using
two phase commit transactions?