Re: Multithreading problem

2011-09-28 Thread Rick Curtis
Some persisted entities are shared between threads, but not EntityManagers. This is the root of your problem. EntityManagers and Entities can't be shared across threads. Thanks, Rick Section 7.2 -- JPA 2.0 Spec An entity manager must not be shared among multiple concurrently executing threads,

Re: Multithreading problem

2011-09-28 Thread Pinaki Poddar
. 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

Re: Multithreading problem

2011-09-28 Thread Rick Curtis
property name=openjpa.Multithreaded value=true/ Be careful when setting this property as there is at least one known bug[1]. Thanks, Rick [1] https://issues.apache.org/jira/browse/OPENJPA-1716 On Wed, Sep 28, 2011 at 9:01 AM, Pinaki Poddar ppod...@apache.org wrote: Concurrent threads can