users@glassfish.java.net

Re: JCA question regarding transactions

From: <glassfish_at_javadesktop.org>
Date: Mon, 14 Jun 2010 18:42:50 PDT

EntityManager shouldn't be passed around. It should be injected/looked up in each component separately. So if done correctly, EntityManager in a non-transactional component won't share its persistent context with the one used in a transactional context.

If your concern is diffrent, please explain in more details :).

thanks,
-marina
[Message sent by forum member 'mvatkina']

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