• 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

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...
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
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!