[jboss-user] [Beginner's Corner] - multiple scheduler on jboss 4.2

liumin hu do-not-reply at jboss.com
Wed May 30 12:02:12 EDT 2012


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]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120530/ae01c7a1/attachment.html 


More information about the jboss-user mailing list