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 connections from play 1.2.5

 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am using play 1.2.5 framework in my application. Play use JPA API to use hibernate. Issue I am facing here, that I want to use multiple database connections in my application, so that a part of my application could use different DB, but play 1.2.5 doesn't support multiple DB connection. Automatically it will give connection details from application.conf file to entitymanager by:



Is there any alternative and easy way to do it?

I've come across a solution mention below:





I am able to establish a connection here but how to pass this connection to JPA and entity manager is not yet clear...
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic