users@glassfish.java.net

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

From: <glassfish_at_javadesktop.org>
Date: Tue, 27 Mar 2007 23:25:56 PST

Hi ksak,

Are there any drawbacks by using a ThreadLocal for this purpose? I mean, can we expect unexpected behaviour of the persistence layer?

I can easily change the way context is passed around, since the ThreadLocal is encapsulated in its own class.

Regards,

Koen
[Message sent by forum member 'koenhautekeete' (koenhautekeete)]

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