hi there,

i try to to use a Local EJB3 StatelessBean within my Spring-POJO.



Code:
@Local(MyLocal.class)
@Stateless(name="MyBean", mappedName="MyBean")
public class MyBean implements MyLocal{...}
i know that glassfish does not map local ejbs to global jndi-tree.
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.

Code:
<jee:local-slsb id="myBean" jndi-name="java:comp/env/MyBean"
		business-interface="org.test.MyLocal" resource-ref="true" />
works neither.

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