1 Reply Latest reply on Mar 10, 2010 1:05 AM by jaikiran

    Calling a stateless EJB from a Service POJO

    anuforwork

      I have a service POJO (http://www.jboss.org/file-access/default/members/jbossejb3/freezone/docs/tutorial/1.0.7/html/Service_POJOs.html) and I want to access a stateless EJB from the start() or create() method of this Service POJO.

       

      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.

       

      My question is: Is it possible to call a stateless EJB from a service POJO?

       

      (I'm using EJB3 + JBoss6)