These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Multiple Sessions/SessionFactories with Same Transaction
PostPosted: Sun Aug 10, 2008 12:30 pm 
Newbie

Joined: Sun Aug 10, 2008 12:23 pm
Posts: 1
I have a question regarding interactions between multiple sessions and a single transaction. First, let me give you the use case. I have a scenario where code runs under a new session/transaction. Part way through the logic flow, I need to open a new session/sessionfactory to the same database but with a different user, yet still have it participate under the same transaction. I'm building connection strings programmatically. Is this possible? If so, should I be creating a new session or an entire new session factory? How do I tell the new session or factory to use the ambient transaction?

Thanks, and please ask for clarification if I did not describe it well enough!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.