Topic
No replies
SystemAdmin
SystemAdmin
4447 Posts
ACCEPTED ANSWER

Pinned topic HibernateException: Current transaction is not in progress on websphere 7.1

‏2012-09-06T15:52:37Z |
Hi,

We're running Hibernate 3.2.6 on EJB3 and websphere 7.1 some requests fail on first Hibernate call with "org.hibernate.HibernateException: Current transaction is not in progress".

below hibernate.cfg.xml configuration

<hibernate-configuration>
<session-factory>
<property name="dialect">org.hibernate.dialect.Oracle9Dialect</property>
<property name="jta.UserTransaction">java:comp/UserTransaction</property>
<propert yname="transaction.factory_class">
org.hibernate.transaction.JTATransactionFactory
</property>
<property name="transaction.manager_lookup_class">
org.hibernate.transaction.WebSphereExtendedJTATransactionLookup
</property>
<property name="hibernate.current_session_context_class">
org.hibernate.context.JTASessionContext
</property>
<property name="hibernate.cache.use_query_cache">true</property>
<property name="hibernate.cache.use_second_level_cache">true</property>
<property name="hibernate.cache.provider_class">
org.hibernate.cache.EhCacheProvider</property>
<property name="hibernate.cache.provider_configuration_file_resource_path">
/ehcache.xml
</property>
<property name="hibernate.jdbc.batch_size">100</property>

Can you give me any pointers into investigations and/or configurations I should look into?

Thanks