-->
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: How to configure multiple datasource using Hiberante?
PostPosted: Fri Nov 18, 2005 12:35 am 
Newbie

Joined: Mon Nov 14, 2005 2:27 am
Posts: 6
I need to configure multiple datasource for my appilication..
How to configure multiple datasource using Hiberante?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 18, 2005 12:51 am 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
you create multiple hibernate.cfg.xml and build it with

Configuration configuration1 = new Configuration("path_xfg1.xml");
SessionFactory sessionFactory = configuration1.buildSessionFactory();
...

you can make multiple configurations programmatic, too


Top
 Profile  
 
 Post subject: How to configure multiple datasource using Hiberante?
PostPosted: Fri Nov 18, 2005 2:56 am 
Newbie

Joined: Mon Nov 14, 2005 2:27 am
Posts: 6
Thanks it is working fine


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.