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.  [ 3 posts ] 
Author Message
 Post subject: Can hibernate be used for cross database transactions?
PostPosted: Thu Mar 23, 2006 5:54 pm 
Newbie

Joined: Wed Oct 12, 2005 11:16 am
Posts: 13
Hi

We are using hibernate2, spring framework, java, oracle10g and tomcat in our application. We want to move some of the tables to SQLServer 2005. So there would be tables related/associated to one another in both oracle and sql server.

Can I use hibernate in this scenario to maintain persistence and transactions across two different databases? If so, please let me know how?

Thanks for any suggestions in advance.

Sri


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 23, 2006 6:42 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
HIbernate uses the transaction environment you have setup. So if you are using an XA datasource (in this case two XA db datasources) then both datasources will be managed by the single Transaction.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 23, 2006 7:16 pm 
Newbie

Joined: Wed Oct 12, 2005 11:16 am
Posts: 13
David

Thank you for your quick response.

Sri


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

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.