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