-->
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.  [ 4 posts ] 
Author Message
 Post subject: about 'Integration of Heterogeneous Databases
PostPosted: Thu Jul 28, 2005 11:40 pm 
Newbie

Joined: Thu Jul 28, 2005 11:19 pm
Posts: 1
hello,

i wanna make a research about 'Integration of Heterogeneous Databases
based on Hibernate' ,but i just have only a little information about it ,do you guys have any ideas or information about this topic?

we can share our knowledge and information ,

Thanks a lot

_________________
JJ


Top
 Profile  
 
 Post subject: Re: about 'Integration of Heterogeneous Databases
PostPosted: Fri Jul 29, 2005 6:12 pm 
Beginner
Beginner

Joined: Mon Apr 12, 2004 6:33 pm
Posts: 35
I do. I use the spring framework to solve this. For every database I create a separate DataSource + SessionFactory. Spring enables you to connect these to your business objects in a transparent way.


Top
 Profile  
 
 Post subject: Re: about 'Integration of Heterogeneous Databases
PostPosted: Mon Aug 01, 2005 12:30 pm 
Beginner
Beginner

Joined: Tue Jul 19, 2005 4:03 am
Posts: 34
Location: Aberdeen, UK
If you are not using Spring, but any J2EE server, a solution will be to create a SessionFactory for each Data Source and store it in JNDI.

Each time you do a request to the database, you retrieve the SessionFactory object from JNDI.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 01, 2005 3:23 pm 
Senior
Senior

Joined: Tue Jan 11, 2005 5:03 pm
Posts: 137
Location: Montreal, Quebec
A thing you must note is that you cannot share the same mapping for 2 sessions factories. So you cannot make any HQL linking 2 Heterogeneous databases. (Same thing as in JDBC.)

Etienne.


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