openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pinaki Poddar <>
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:
Sent from the OpenJPA Users mailing list archive at

View raw message