[
http://jira.jboss.com/jira/browse/JBAS-4705?page=all ]
Darran Lofthouse resolved JBAS-4705.
------------------------------------
Resolution: Duplicate Issue
Assignee: Darran Lofthouse
org.jboss.varia.scheduler.Scheduler
-----------------------------------
Key: JBAS-4705
URL:
http://jira.jboss.com/jira/browse/JBAS-4705
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: JBossAS-4.0.4.GA
Reporter: Rafael Codina Tormo
Assigned To: Darran Lofthouse
I am currently implementing MBeans to schedule several classes. For that purpose, I am
using the javax.management.timer.Timer class as timer.
Here you can see an exemple:
Code:
<mbean code="javax.management.timer.Timer"
name="app.timer:service=Scheduler">
</mbean>
<mbean code="org.jboss.varia.scheduler.Scheduler"
name="app.timer:service=TheScheduler">
<attribute name="StartAtStartup">true</attribute>
<attribute name="SchedulableClass">myClass</attribute>
<attribute name="SchedulableArgumentTypes">MyTypes</attribute>
<attribute name="SchedulableArguments">MyArgs</attribute>
<attribute name="InitialStartDate">01/01/1970
22:00</attribute>
<attribute name="SchedulePeriod">86400000</attribute>
<attribute name="InitialRepetitions">-1</attribute>
<depends>app.timer:service=Scheduler</depends>
</mbean>
The execution of the class takes 15 minutes (it finishes at 22:15), which makes the
second execution start at 22:15 the following day, whereas we need it to be started at
22:00.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira