I'm using bean managed transaction and everything is runing inside the webcontainer only.....and below are the some of properties of my hibernate.cfg.xml
Code:
<session-factory>
<property name='hibernate.interceptor'>com.dixons.branch.framework.server.AuditInterceptor</property>
<property name="connection.datasource">java:comp/jdbc/eclipse</property>
<property name="dialect">org.hibernate.dialect.OracleDialect</property> <property "transaction.manager_lookup_class">org.hibernate.transaction.WebSphereExtendedJTATransactionLookup</property> <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
<property name="jta.UserTransaction">jta.usertransaction</property>
<property name="hibernate.session_factory_name">com.dixons.persistence.framework.server.HibernateSessionFactory</property>
<!-- Cache manager -->
<property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
<property name="hibernate.transaction.flush_before_completion">true</property>
<property name="hibernate.transaction.auto_close_session">true</property>
<property name="show_sql">true</property>
warm regards,
shikhar