Thread:
 Audit Log: Question on Rollback in JTA... 
 joshi   05 Jan 2006, 04:50 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: joshi (05 Jan 2006, 04:50) Replies: 0, Views: 26921
Subject: Audit Log: Question on Rollback in JTA...
Since we are opening a new session instead of 
sessionFactory.getCurrentSession(), will it work with JTA?

I understand that we are not supposed to use same session as the one 
that triggers the event/interceptor method.

In a different context, I saw that the following provides a new 
session with the same connection.

Session newSession = sessionFactory.openSession(oldSession.connection
()); 

If we use the above, will it work with JTA?
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]