-->
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 SessionFactory and transactions
PostPosted: Tue Nov 23, 2004 7:48 am 
Beginner
Beginner

Joined: Tue Oct 26, 2004 12:45 pm
Posts: 43
Location: Israel
Hibernate version: 2.1.6

JBoss version: 3.2.5

Hi.

I lookup a sessionFactory that uses datasource X with JTA.
I open a session, begin a transaction and do some work.
before commiting, i call a third party code (lets call it code1) which also gets a different sessionFactory that uses datasource X, opens a session and begins a transaction.
after that, i again call a third party code (code2) which, again, gets a third sessionFactory that uses datasource Y, opens a session and begins a transaction.

my question is: which code participate in my transaction? both? none? code1?

please help.
Jus.


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.