2 Replies Latest reply on Feb 15, 2007 9:19 AM by casadelnorte

    Jboss Scheduler problem

    waheed.murad

      i want to use org.jboss.varia.scheduler.Scheduler to schedule some task on jboss start up for my application.

      my scheduler-service.xml is:


      true
      org.com.MyScheduler
      Schedulabe Test,12345
      java.lang.String,int
      0
      10000
      -1
      true


      jboss gives error that cannot find : org.com.MyScheduler . MyScheduler class is placed in my EAR deployment in the jboss delpoy folder...

        • 1. Re: Jboss Scheduler problem
          waheed.murad

          schedular-service.xml:

          <mbean code="org.jboss.varia.scheduler.Scheduler"
          name=":service=Scheduler">
          <attribute name="StartAtStartup">true</attribute>
          <attribute name="SchedulableClass">org.jboss.varia.scheduler.example.SchedulableExample</attribute>
          <attribute name="SchedulableArguments">Schedulabe Test,12345</attribute>
          <attribute name="SchedulableArgumentTypes">java.lang.String,int</attribute>
          <attribute name="InitialStartDate">0</attribute>
          <attribute name="SchedulePeriod">10000</attribute>
          <attribute name="InitialRepetitions">-1</attribute>
          <attribute name="FixedRate">true</attribute>
          </mbean>


          • 2. Re: Jboss Scheduler problem

            Do yourself a favor and check out Quartz - we started using it a couple of years ago and never looked back - it's amazing!
            http://www.opensymphony.com/quartz/