Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Multiple Datasources and Hibernate  RSS feed

Nisha Ph
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am not using Spring Framework along with Hibernate.

Is there any way where i can create and use the multiple datasources.

IDE is Eclipse (MyElipse plugin) with XDoclete.

Supposing i am having multiple entries of <session-factory> in hibernate.cfg.xml file , then how will i create the multiple SessionFactories , so for that i need to have multiple configuration xml files.

But then this approach increase the coding efforts in determining the SessionFactory and then using it.

Please help me if you have any idea about this.

Thanks & Regards,
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!