hi there,
i try to to use a Local EJB3 StatelessBean within my Spring-POJO.
i know that glassfish does not map local ejbs to global jndi-tree.Code:@Local(MyLocal.class) @Stateless(name="MyBean", mappedName="MyBean") public class MyBean implements MyLocal{...}
but anyway, the bean needs a name where it could be found under java:comp/env
applicationContext.xml:
Code:<jee:local-slsb id="myBean" jndi-name="MyBean" business-interface="org.test.MyLocal" resource-ref="true" />
resulting in an:
javax.naming.NameNotFoundException: MyBean not found
when i try to inject the 'myBean' into a Spring-Bean.
works neither.Code:<jee:local-slsb id="myBean" jndi-name="java:comp/env/MyBean" business-interface="org.test.MyLocal" resource-ref="true" />
the whole project contains only an EJB-Module, which contains the EJB3-Beans and the Spring-Pojos together with all configuration-files.
the ejb-module is packaged into an EAR(only containing the EJB-module) and deployed on glassfish v2.1
I read th glassfish-faqs about how to lookup a local-ejb from a pojo.
but these examples assume that i call the Pojo itself from an EJB, which i dont do.
anyway, isnt there a way to lookup a local EJB?
thanks in advance.
tim


Reply With Quote