• Post Reply Bookmark Topic Watch Topic
  • New Topic

Multiple Datasources and Hibernate

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,
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!