-->
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: Distributed Transactions With Hibernate
PostPosted: Thu Aug 03, 2006 7:08 pm 
Newbie

Joined: Thu Aug 03, 2006 6:54 pm
Posts: 16
What I'm trying to do is update two distributed databases (MySQL) inside the one User Transaction. I have two session objects - one for each database configuration. The problem is, if the first database is not updated properly then the second one should not be updated also - i.e. the whole user transaction should be rolled back. This however is not the case - the second database is still being updated.

I have already looked at the "extended Session pattern for long Conversations" (http://www.hibernate.org/43.html). However, this is not so useful because the example given only updates the one database.

If anyone can shed some light on the matter that would be greatly appreciated.


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.