JPA - Performance with using multiple entity manager
- by Nguyen Tuan Linh
My situation is:
The code is not mine
I have two kinds of database: one is Dad, one is Son.
In Dad, I have a table to store JNDI name. I will look up Dad using JNDI, create entity manager, and retrieve this table.
From these retrieved JNDI names, I will create multiple entity managers using multiple Son databases.
The problem is:
…