1 Reply Latest reply on Nov 2, 2007 2:53 PM by Elias Ross

    How to Deploy JBoss Scheduler Service with Web App

    Jeff Stickel Newbie

      Hey Folks.

      I have a web app (.war) to deploy to JBoss 4.2, and there's a class in the app that implements org.jboss.varia.scheduler.Schedulable. I want this thing to be invoked by the JBoss Scheduler. I can get the WAR deployed with no problems, but the scheduler service is not starting when I deploy the app or when I restart the server.

      Note: This is simply a web deployment (WAR), not a J2EE Application (EAR).

      I have the jboss:service=Timer service started at the server level, but I can't seem to get my Schedulable instance started.

      I don't want to deploy the Scheduler at the server level (class not found), but rather with the web app. I'm open to suggestions on how to configure both the timer and the scheduler services.

      scheduler-service.xml (in WAR file ~/META-INF/ directory) is as follows:

      1/1/2007 12:00 am
      <!-- 1000 * 60 * 30 --><!-- every 30 minutes -->
      1000 <!-- every second -->