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 <gkaout...@gmail.com> wrote: > 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? >