Thanks for your replies,
It makes sense indeed to do a lookup instead of keeping the EntityManager reference in a ThreadLocal instance. Next to that, it avoids problems related to (ab)using a ThreadLocal instance.
Regards,
Koen
[Message sent by forum member 'koenhautekeete' (koenhautekeete)]
http://forums.java.net/jive/thread.jspa?messageID=210369