1 Reply Latest reply on Jul 19, 2006 5:16 PM by Pat Osterday

    Quartz Job scheduling

    William Conroy Newbie

      I am upgrading to 4.0.4.GA and I am having trouble with some quartz stuff. On the old version of JBoss, I deployed the quartz mbean (org.quartz.ee.jmx.jboss.QuartzService) myself and had an xml initializer file that I listed my jobs in.

      When I deploy now on 4.0.4.GA, I dont see my jobs being deployed (probably since the scheduler starts with different properties). How can I configure quartz in 4.0.4.GA so that it will read my initialization file?

      Also, what jndi name does the quartz service bind to and where is that configured. Maybe I am dense, but I cant seem to find it.



        • 1. Re: Quartz Job scheduling
          Pat Osterday Newbie

          I'm still trying to figure out the way 4.0.4GA (EJB3 deployment) is using Quartz, but I was running into problems too. The problem that I think most people will have is that JBoss uses the same instance name that the default config from the Quartz distribution uses. Depending on how the service is deployed, sometimes our Quartz was used and persisted in our MySQL database but if the JBoss instance was used the jobs were created in the RAMJobStore and lost if we restarted JBoss!

          So far the solution for me was to change our quartz-service.xml config instanceName value from the default of DefaultQuartzScheduler to something else.

          org.quartz.scheduler.instanceName = DefaultQuartzScheduler

          Also, since JBoss already includes the quartz-all-1.5.2.jar file in the lib directory, you don't need to put that in the deploy directory anymore and the following line (or similar) can be removed from the quartz-service.xml file:

          <classpath codebase="." archives="quartz-all-1.5.2.jar"/>

          This seems to be working for us so far, but I only just got it going so it hasn't been tested too much.

          If someone has a better way to create a persistance job store using Quartz in JBoss, please let me know!