This content has been marked as final.
Show 4 replies
-
1. Re: Change database connection dynamically
amitev Jul 13, 2010 7:19 AM (in response to tausuahmed)Why would you like to do that?
-
2. Re: Change database connection dynamically
tausuahmed Jul 13, 2010 10:14 AM (in response to tausuahmed)I have multiple database located at different locations so i need to connect to that database on fly.
-
3. Re: Change database connection dynamically
amitev Jul 14, 2010 2:44 AM (in response to tausuahmed)You have to use pure JDBC or some kind of helper lib. This won't work with JPA.
-
4. Re: Change database connection dynamically
sappo Jul 14, 2010 4:33 AM (in response to tausuahmed)Hi guys,
actually it is possible. The clue is to use multiple dynamic entityManagers. And surprise surprise the solution can be found in the seam documentation ;) I think this goes into the direction to solve your problem.
http://seamframework.org/Documentation/HowDoIUseMultipleDynamicEntityManagersInSeam
//Kevin