emmanuel wrote:
Yes it is possible. Just use a transactional DS from WL and configure the TransactionManagers in Hibernate (see the ref doc)
My requirement is two fold :
one is to achieve global transaction behaviour using weblogic app. server
second is to access multiple data stores using two different conenction pools deployed on weblogic.
I have used the following code :
property name="hibernate.connection.datasource" value=<Name of datasource>/>
<property name="hibernate.transaction.manager_lookup_class" value="net.sf.hibernate.transaction.WeblogicTransactionManagerLookup"/>
<property name="hibernate.transaction.factory_class" value="net.sf.hibernate.transaction.JTATransactionFactory"/>
<property name="jta.UserTransaction" value="javax/transaction/UserTransaction"/>
The first requirement gets fulfilled bt above code.
But for second it gives the following error :
Caused by: java.sql.SQLException: Connection has already been created in this tx context for pool named CvdbPool. Illegal attempt to create connection from another pool: TlvPool
Thanks in advance!