For example, I have two tasks:
<mbean code="org.jboss.varia.scheduler.Scheduler" name=":service=Scheduler">
<attribute name="StartAtStartup">true</attribute>
<attribute name="SchedulableClass">Scheduler1</attribute>
<attribute name="InitialStartDate">NOW</attribute>
<attribute name="SchedulePeriod">60</attribute>
<attribute name="InitialRepetitions">-1</attribute>
<attribute name="FixedRate">false</attribute>
</mbean>
<mbean code="org.jboss.varia.scheduler.Scheduler" name=":service=Scheduler2">
<attribute name="StartAtStartup">true</attribute>
<attribute name="SchedulableClass">Scheduler2</attribute>
<attribute name="InitialStartDate">NOW</attribute>
<attribute name="SchedulePeriod">3600</attribute>
<attribute name="InitialRepetitions">-1</attribute>
<attribute name="FixedRate">false</attribute>
</mbean>
I.e. first is scheduled every minute, the second every hour.
The problem is, that if execution of the second task takes, say 5 minutes, then the first one is not executed during this time and it waits till the second one is done.
Is there a way to have them working in parallel? Or I should move to Quartz or something else?
Use
It will start the schedule in parralel.