users@glassfish.java.net

Re: Putting EntityManagerFactory into JNDI

From: <glassfish_at_javadesktop.org>
Date: Wed, 23 Jan 2008 07:29:58 PST

Right, but the problem is that Seam is in general loosely coupled, so it may need to look up the EMF through the JNDI from several calls below my EJB or in some totally unrelated interceptor code. To account for this I would need to add a @PersistenceUnit annotation for every EJB in my application which is something I don't want to do (as I tried to explain in my original post, though perhaps not clearly enough). I'd rather publish the EMF in a global JNDI.
[Message sent by forum member 'koser' (koser)]

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