|
|
I'm using Spring 2.5 with Hibernate 3.2. My transaction manager is Bitronix and is configured within the application and not through JNDI.
I've defined my JtaTransactionManager as follows:
Code: lt;bean id=quot;transactionManagerquot; class=quot;org..transaction.jta.JtaTransactionManagerquot;gt; lt;property name=quot;transactionManagerquot;gt; lt;ref local=quot;bitronixTransactionManagerquot;/gt; lt;/propertygt; lt;property name=quot;userTransactionquot;gt; lt;ref local=quot;bitronixTransactionManagerquot;/gt; lt;/propertygt; lt;/beangt;
My Hibernate Session factory is defined as follows:
Code: lt;bean id=quot;hibernateSessionFactoryquot; class=quot;org..orm.hibernate3.LocalSessionFactoryBeanquot;gt; lt;property name=quot;dataSourcequot; ref=quot;quotingDataSourcequot; /gt; lt;property name=quot;mappingResourcesquot;gt; lt;listgt; lt;valuegt; com/sybase/it/quoting/dao/hibernate/maps/UserQuote.hbm.xml lt;/valuegt; lt;/listgt; lt;/propertygt; lt;property name=quot;hibernatePropertiesquot;gt; lt;valuegt; hibernate.dialect=org.hibernate.dialect.SybaseDialect hibernate.jdbc.use_get_generated_keys=false hibernate.cache.provider_class=com.opensymphony.oscache.hibernate.OSCacheProvider com.opensymphony.oscache.configurationResourceName=com/sybase/it/quoting/oscache.properties lt;/valuegt; lt;/propertygt; lt;/beangt;
All my transactional boundaries are defined declaratively and seem to be working correctly. But when I start the server and my applicaiton comes up I get the following info messages from Hibernate:
2008-05-05 16:02:37,938 [main : ] [INFO ,TransactionFactoryFactory] Using default transaction strategy (direct JDBC transactions)
2008-05-05 16:02:37,938 [main : ] [INFO ,TransactionManagerLookupFactory] No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
2008-05-05 16:02:37,938 [main : ] [INFO ,SettingsFactory] Automatic flush during beforeCompletion(): disabled
2008-05-05 16:02:37,938 [main : ] [INFO ,SettingsFactory] Automatic session close at end of transaction: disabled
This concerns me as I now wonder if Hibernate is actually participating in the global transactions. In addition, I am getting a warning from my JDBC driver that shows it believes to be operating in a local transaction.
Is my configuration correct for Hibernate to support JTA?
Thanks for the help.... |
|