-->
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: Using Oracle and MS SQL Server simultaneously with Hibernate
PostPosted: Tue May 10, 2011 8:33 am 
Newbie

Joined: Tue May 10, 2011 7:38 am
Posts: 2
Hello

I am working on a web application where the server end of the application will be based upon Spring + Hibernate. For database, we have Oracle 11 and MS SQL Server 2008. In the application, some database tables are in Oracle while some are from SQL Server.

How can I configure both databases in one hibernate.cfg file? Like for example when working with EJB3, you can easily give multiple data sources using <persistence-unit> tag in the same persistence.xml file. Then they can be referred in the SessionBeans with @PersistenceContext.

Can I do the same in hibernate?


Thanks


Top
 Profile  
 
 Post subject: Re: Using Oracle and MS SQL Server simultaneously with Hibernate
PostPosted: Wed May 11, 2011 3:03 am 
Newbie

Joined: Tue May 10, 2011 7:38 am
Posts: 2
Hello

Thanks for the links. There is some issue with the urls which you have posted. Can you please post them again.


Thanks


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.