2 Replies Latest reply on May 17, 2006 10:12 PM by cdollar393

    @EJB injection in Schedulable SLSB

    cdollar393

      I am trying to inject another SLSB in a SLSB that implements org.jboss.varia.scheduler.Schedulable with no luck. The code is

      @EJB (beanName="PropertyManagerBean")
      private LocalPropertyManagerBeanInterface propManager;

      which works just fine in my other SLSBs. When I try to use propManager I get a NullPointerException. Looking up the beans without injection works fine. I can however successfully use @Resource to inject a datasource into the bean.

      I guess my question is can you inject a SLSB into a SLSB that implements Schedulable?

      Thanks,
      Chris