JPA using dynamic database connection
843830Aug 18 2009 — edited Aug 20 2009Hello everybody.
My current project requires JPA to use dynamic datasource connection. And I need to register the database connection implementation in JNDI. For the dynamic part, the idea is that if user A logs in, JPA should use A's id and pw to create a datasource connection. When user B logs in, JPA should use B's credentials to create a datasource connection instead. I poked around a bit in the forum and found out that DataNucleus supports Dynamic datasource for JPA.
But, could any one tell me if JPA supports dynamic datasource connection out of the box? If it does, could you point me to some samples.
Thanks!