openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pinaki Poddar <ppod...@apache.org>
Subject Re: Multithreading problem
Date Wed, 28 Sep 2011 14:01:09 GMT
Concurrent threads can operate on an OpenJPA EntityManager. However, by
default,  EntityManager is not thread-safe. Try
<property name="openjpa.Multithreaded" value="true"/>

Please note that this flag will ensure that OpenJPA will protect all its
internal data structures for concurrent access. But the persistent entities
being operated upon are in user control. The user application has to ensure
their thread-safety.

-----
Pinaki Poddar
Chair, Apache OpenJPA Project
--
View this message in context: http://openjpa.208410.n2.nabble.com/Multithreading-problem-tp6839678p6840293.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Mime
View raw message