This content has been marked as final.
Show 1 reply
-
1. Re: Calling a stateless EJB from a Service POJO
jaikiran Mar 10, 2010 1:05 AM (in response to anuforwork)anuforwork wrote:
If I try to call the stateless EJB from within the Service POJO, I get an NamingNotFound exception. I understand that my stateless EJB will not yet be bound before my Service POJO start method is called.
Make sure you add a @org.jboss.ejb3.annotation.Depends on the Service bean to depend on the SLSB, as explained here http://www.jboss.org/file-access/default/members/jbossejb3/freezone/docs/tutorial/1.0.7/html/Dependencies_in_EJB3.html