users@glassfish.java.net

Re: Local SLSB and PersistenceContext

From: <glassfish_at_javadesktop.org>
Date: Mon, 30 Jun 2008 06:05:23 PDT

EM is injected right after the jsf backing bean is instantiated, and this only happens once for this jsf bean. So this jsf backing bean will always reference the same EM instance. If you really want a different instance, why not set the the backing bean to Request scope?

If you don't see anything wrong with persistence context isolation, then it should not be a concern.

-cheng
[Message sent by forum member 'cf126330' (cf126330)]

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