Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • 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,
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic