openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chintan4181 <chintan4...@gmail.com>
Subject Re: Multiple concurrent threads attempted to access a single broker
Date Thu, 22 Sep 2011 16:42:54 GMT
I will try that.

On the other note, i was reading article on ibm infocenter and it says that,
you should use get-use-close pattern. Earlier we were using
@persistenceContext so it was managed proplery but now we are using 

EntityManagerFactory factory =
Persistence.createEntityManagerFactory(unitName);
entityManager = factory.createEntityManager(); 

and methods are not closing the entity manager. do you think that could be
the issue?

Thanks
Chintan

--
View this message in context: http://openjpa.208410.n2.nabble.com/Multiple-concurrent-threads-attempted-to-access-a-single-broker-tp6820896p6821026.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Mime
View raw message