This content has been marked as final.
Show 1 reply
-
1. Re: Error when looking up SLSB EJB with Spring
wzkl52 May 26, 2009 5:00 PM (in response to wzkl52)This error occurs because we are trying to look up a Local interface of an stateless EJB with spring, by definition when you specify <jndi-name> on jboss.xml or ejb-jar.xml this JNDI is assigned to the remote interface. So you need to specify the local-jndi-name as follows:
<enterprise-beans>
<ejb-name>GranInvokerEJB</ejb-name>
<jndi-name>GranInvokerEJB</jndi-name>
<local-jndi-name>GranInvokerEJBLocal</local-jndi-name>
</enterprise-beans>
Once you do this error should be solved.
I hope this can help you...