I'd advise against using openjpa.Multithreaded... there are a number of known issues with the implementation of this property. You'll be much happier in the long run if you stick to not sharing EntityManagers / Entities across threads.
Thanks, Rick On Mon, Jun 4, 2012 at 8:27 AM, CarpathianAnonymous < andreibratu2...@yahoo.com> wrote: > Hello > > I want the following problem: > > While using OpenJPA with <property name="openjpa.Multithreaded" > value="true"/> i found myself having some threads waiting in "Unsafe.park" > state (see picture below). The blocking appears to happend on commit. > > I'm using an EntityManager which does not allow any transaction.begin() > between a transaction.begin() & transaction.commit(). Also there is no > exception thrown. > > > > > http://openjpa.208410.n2.nabble.com/file/n7580200/blocking_commit_stack.png > -- *Rick Curtis*