liumin hu [https://community.jboss.org/people/liuliu] created the discussion

"multiple scheduler on jboss 4.2"

To view the discussion, visit: https://community.jboss.org/message/738827#738827

--------------------------------------------------------------
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>
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/738827#738827]

Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to