0 Replies Latest reply on May 30, 2012 12:03 PM by liumin hu

    multiple scheduler on jboss 4.2

    liumin hu Master

      hi,

       

      I created 3 schedulers on using org.jboss.varia.scheduler.Scheduler. every scheduler works fine.

       

      my problem is : when I put them together every action is called one after another, if one action takes too long, the others is not called until it finished.

       

      how can I have 3 schedulers works separately?

       

      here is what in my jboss-service.xml

       

         <mbean code="org.jboss.varia.scheduler.Scheduler"

       

                 name="sigems-ear-dme:service=Scheduler">

              <attribute name="StartAtStartup">false</attribute>

              <attribute name="SchedulableClass">synchro.ExSchedulable</attribute>

              <attribute name="SchedulableArguments"></attribute>

              <attribute name="SchedulableArgumentTypes"></attribute>

       

              <attribute name="InitialStartDate">NOW</attribute>

              <attribute name="SchedulePeriod">6000</attribute>

              <attribute name="InitialRepetitions">-1</attribute>

          </mbean>

       

          <mbean code="org.jboss.varia.scheduler.Scheduler"

                 name="sigems-ear-dme:service=WelchAllyn">

              <attribute name="StartAtStartup">false</attribute>

              <attribute name="SchedulableClass">synchro.ExWelchAllyn</attribute>

              <attribute name="SchedulableArguments">sigems-ear-dme</attribute>

              <attribute name="SchedulableArgumentTypes">java.lang.String</attribute>

       

              <attribute name="InitialStartDate">NOW</attribute>

              <attribute name="SchedulePeriod">6000</attribute>

              <attribute name="InitialRepetitions">-1</attribute>

          </mbean>

       

          <mbean code="org.jboss.varia.scheduler.Scheduler"

                 name="sigems-ear-dme:service=PasserelleSpec">

              <attribute name="StartAtStartup">false</attribute>

              <attribute name="SchedulableClass">synchro.ExPasserelleSpec</attribute>

              <attribute name="SchedulableArguments">sigems-ear-dme</attribute>

              <attribute name="SchedulableArgumentTypes">java.lang.String</attribute>

       

              <attribute name="InitialStartDate">NOW</attribute>

              <attribute name="SchedulePeriod">60000</attribute>

              <attribute name="InitialRepetitions">-1</attribute>

          </mbean>

       

      thanks in advance