users@glassfish.java.net

Re: Local EJB access within an Entity Bean

From: <glassfish_at_javadesktop.org>
Date: Thu, 17 Jan 2008 05:55:04 PST

Yes, I think so.

You'd need to add @EJB (or ejb-local-ref if you prefer to use ejb-jar.xml) to the last Session bean that is used before the Role instance is created (i.e. where you create it or call em.find or execute a query). Specify "RoleManagerLocal" for the 'name' attribute, "RoleManagerBean" for the 'beanName' attribute and "RoleManagerLocal" (include package name if it has one) for the 'beanInterface' attribute.
[Message sent by forum member 'dkoper' (dkoper)]

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