Woops. I really meant to write this in the last mail on this topic:

Properties props = new Properties();
props.setProperty("hibernate.transaction_strategy", "JTA");
TransactionFactory txFactory = Hibernate.createTransactionFactory(props);

Then, for (1):

Transaction tx = txFactory.createTransaction(session);

Or, for (2):

Transaction tx = txFactory.createTransaction();


_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
Hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to