users@glassfish.java.net

Re: Surprising JPA (Toplink) Behaviour (glassfish v1 UR1)

From: <glassfish_at_javadesktop.org>
Date: Wed, 28 Mar 2007 11:09:13 PST

ThreadLocal is not part of the Java EE programming model. It's much too low-level.
It's typically used by system-level code as part of the Java EE container itself, so it's not
something that is recommended. It's much better to use a portable, application-level
approach to acquire any resources you need. Container-managed EntityManagers were
designed with persistence context propagation in mind.

 --ken
[Message sent by forum member 'ksak' (ksak)]

http://forums.java.net/jive/thread.jspa?messageID=210351