开发者

How do i use JPA 2 to connect to multiple data sources?

开发者 https://www.devze.com 2023-01-10 18:26 出处:网络
I have two databases in MSSQL ,and i wa开发者_开发技巧nt 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?

I have two databases in MSSQL ,and i wa开发者_开发技巧nt 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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号