0 Replies Latest reply on Dec 17, 2008 3:25 AM by Ralf Heydenreich

    Quartz Service doesn't bind to JNDI

    Ralf Heydenreich Newbie

      Hi all,
      I can't get Quartz to work. At first, I've created a quartzservice.sar as described in http://www.kouiskas.com/?page_id=19. The Service starts and is bound to JNDI. But if I create a CronTrigger and it's time to start this trigger, it complaints about ClassNotFoundException. I think, the service runs in a different JVM than my EAR.

      If I unpack the quartz-service into my EAR, I get a NullPointerException while my service class is looking up the quartz service.

      Here is my application.xml (fragments)

      ...
       <module>
       <java>quartz-1.6.3.jar</java>
       </module>
       <module>
       <ejb>quartz-jboss-1.6.3.jar</ejb>
       </module>
      ...
      


      And here is the service that uses quartz:
      @Service (objectName = "jboss:custom=MyOwnService", name = "MyOwnService")
      public class MyOwnService implements MyOwnManagement {
      
       @Resource(mappedName="Quartz")
       private Scheduler sched;
      


      How can I get quartz to work so that it can find my service?

      TIA,
      Ralf.