0 Replies Latest reply on Jun 2, 2005 3:17 PM by davout

    Adding my first scheduler - problems

    davout

      I've been experimenting with my first schedulable implementation and I've hit a problem with the scheduable class implementation kicking off before my own app is fully activated.

      My scheduler is defined in the deployment folder 'scheduler-service-.xml' file, as...

       <mbean code="org.jboss.varia.scheduler.Scheduler"
       name=":service=Scheduler">
       <attribute name="StartAtStartup">true</attribute>
       <attribute name="SchedulableClass">com.eis.tm.gateway.email.EmailResponseCheckerTask</attribute>
       <attribute name="SchedulableArguments">email,1</attribute>
       <attribute name="SchedulableArgumentTypes">java.lang.String,int</attribute>
       <attribute name="InitialStartDate">0</attribute>
       <attribute name="SchedulePeriod">30000</attribute>
       <attribute name="InitialRepetitions">-1</attribute>
       </mbean>
      
      


      I can't find any docs that explain how to add some form of delay into the scheduling initialization.

      Elsewhere I read a forum posting that suggested using an alternative 'my-scheduler-service.xml' configuration that would be part of the deployment file, but there were no docs to explain how this is achieved.

      Any helpers?