I was wondering if anyone could cast some lights on thread safety of the
EntityManager injected with the <jpa:context /> blueprint element.
Some time ago, I raised ARIES-885 and wrapped the inner detachedManager
into a synchronized wrapper, but there are still thread safety problems.
My main question, is how is the injected EntityManager supposed to be used
? Is is supposed to be thread safe or is the user supposed to synchronize
access to it ? I also see that each call is followed by a call to clear on
the shared EM, so I'm not quite sure what the effect is supposed to be.

Any thoughts welcomed !

Cheers,
Guillaume Nodet

Reply via email to