May be I should be clear with calls when I written
StatHBTransaction
basically we use OpenSession instead of getCurrentSession of Hibernate. This is all handled by our own utility classes.
The way its works above is
transactionStartedHere = startService(methodName, ReportClass.class); <= this will start a transaction on Hibernate
and the same way commit/rollbacks are handled using utility classes. My Hibernate.cfg.xml looks like
<!-- COMMON Properties -->
<property name="hibernate.current_session_context_class">
org.hibernate.context.ThreadLocalSessionContext
</property>
<property name="hibernate.transaction.manager_lookup_class">
org.hibernate.transaction.WebSphereExtendedJTATransactionLookup
</property>
<!-- <property name="jta.UserTransaction">jta/usertransaction</property> -->
<property name="hibernate.transaction.factory_class">
org.hibernate.transaction.JTATransactionFactory
</property>
Also I came across this link
http://docs.jboss.org/hibernate/core/3. ... ansactions which says I dont need to call beginTransaction is UserTransaction already started and also to use "jta" for current_session_context_class property
Is there a way to go back to earlier stage so that I dont have to change my code (or minimize it)?
Hoping to get some details here