views:

80

answers:

1

I have two databases in MSSQL ,and i want to connect to them using JPA2 I have managed to get it working with one . Can some one help me how do i do that?

Thanks a Lot.

+1  A: 

Configure two persistence units and use two EntityManagerFactory (one per persistence unit).

Pascal Thivent
Thanks Pascal! I am new to JPA , and its good that good help is around :)
BinCode
@BinCode You're welcome.
Pascal Thivent