5 Replies Latest reply: Feb 12, 2009 4:00 AM by 807588 RSS

    Need Urgent Help! Exception During Deployment of JBoss Scheduler Service

      Hi Folks,

      I have a web app (.war) to deploy to JBoss 4.0.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, but I can't seem to get my Schedulable instance started.
      Note: This is simply a web deployment (WAR), not a J2EE Application (EAR).
      I've tried to deploy the Scheduler at the server level but i've got a deployment exception - "file is not not found".
      also, I've tried to add the scheduler-service.xml into my web app (in WAR file ~/META-INF/ directory).
      I'm open to suggestions on how to configure the scheduler services so it will work without any exceptions.
      My scheduler-service.xml is as follows:
      <mbean code="org.jboss.varia.scheduler.Scheduler" name="TevaOrderScheduler:service=Scheduler">
           <attribute name="StartAtStartup">true</attribute>
           <attribute name="SchedulableClass">com.cnw.enfopack.TevaOrderScheduler</attribute>
           <attribute name="InitialStartDate">NOW</attribute>
           <!--<attribute name="DateFormat">dd/MM/yy HH:mm</attribute>-->
           <attribute name="SchedulePeriod">20 * 1000</attribute>
           <attribute name="InitialRepetitions">-1</attribute>

      Please HELP me, I'm working on this issue in the last 3 days!!!

      Many Thanks in advance,

      Edited by: Sagi_MY on Feb 11, 2009 11:32 PM