Re: change persistence.xml at run time

2016-03-26 Thread John D. Ament
Well, Tomcat doesn't provide any support for JPA OOTB, so you'd probably need to check w/ your JPA implementation on what they support. John On Sat, Mar 26, 2016 at 8:02 AM Kaouthar Ghorbel wrote: > hello, > > I have two database that have the same design and the same

change persistence.xml at run time

2016-03-26 Thread Kaouthar Ghorbel
hello, I have two database that have the same design and the same tables , I already developped methods for database A and I want to reuse them for database B. for that I must change jndi in persistance.xml at run time , is it possible to do that?