Hi Chintan,
The error message is rather obvious -- in not it?
As a suggestion, consider
private static Map<String, EntityManagerFactory> buEntityMap;
instead of
private static Map<String, List<EntityManager>> buEntityMap;
EntityManagers have shorter life cycle and not so effective as cached items.
On the other hand EntityManagerFactory are ideally created once in the
entire life time of an application and good candidate to be remembered.
See if that solves the problem of multiple threads entering a single
EntityManager.
-----
Pinaki Poddar
Chair, Apache OpenJPA Project
--
View this message in context: http://openjpa.208410.n2.nabble.com/Multiple-concurrent-threads-attempted-to-access-a-single-broker-tp6820896p6820989.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.
|