This content has been marked as final.
Show 1 reply
-
1. Re: Using two databases..
fenixx Apr 12, 2009 10:12 PM (in response to johnpepo)First, you have do declare two different persitence units in your persistence.xml file(s).
After that you need to use@PersistenceUnit(name=MyPU) EntityManager em;
As you see: The name of the persistence unit is important which database you want to use.
Regards