users@glassfish.java.net

Re: EJB from Entity class

From: <glassfish_at_javadesktop.org>
Date: Thu, 28 Aug 2008 10:43:40 PDT

JPA entities are not considered components so they do not have their own component environment. They only have access to whatever component environment is in scope when
they are executed. You would need to define the XFacade EJB reference within the session
bean or web application that is invoking the entity bean when lookupXFacade() is called.
[Message sent by forum member 'ksak' (ksak)]

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