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.  [ 2 posts ] 
Author Message
 Post subject: Separate databases
PostPosted: Wed Aug 16, 2006 7:09 am 
Senior
Senior

Joined: Mon Jul 24, 2006 8:43 am
Posts: 160
Hi,
How is hibernate configured to talk to two different databases?
Suppose in my architecture I have some information in one database and some in another? and I can also have rel's going from one database to another?
and I also need transactions to cover updates to both at the same time?
how does hibernate support this?
Any links to relevant tutorials and advice would be appreciated.
Thanks


Top
 Profile  
 
 Post subject: Re: Separate databases
PostPosted: Wed Aug 16, 2006 7:26 am 
Beginner
Beginner

Joined: Thu Jul 20, 2006 12:08 pm
Posts: 21
Location: Germany
breako wrote:
Hi,
How is hibernate configured to talk to two different databases?


hi,

IMHO it is necessary to create one sessionfactory for each database

breako wrote:
Suppose in my architecture I have some information in one database and some in another? and I can also have rel's going from one database to another?


do you mean the hole relation ? in your application you handle with objects. so where is the problem to load the objects from a database and save/move it to another db.

breako wrote:
and I also need transactions to cover updates to both at the same time?
how does hibernate support this?


the magic word is two phase commitment.

regards

marlon

_________________
marlon
---
don't hesitate to rate.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.