Hi,
Hibernate version:
3.2.0 cr2.
Name and version of the database you are using:
mysql 5.0
1. What is the difference between the 3 type transactions?
2. If I specify the following in my hibernate.cfg.xml file, which means hibernate will not use direct jdbc connection, how come I don't get error if i use Hibernate Transaction for begin and commit? I thought we will need to use UserTransaction for begin and commit? Not necessary is it?
Code:
<property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
3. Between, if i specify "org.hibernate.transaction.JTATransactionFactory" like in question 2, I find I can use jta or thread for the "current_session_context_class". Is this normal? Which one should I use?
Code:
<property name="hibernate.current_session_context_class">thread</property>
Thank you.