Hi guys,
I created a JBoss Scheduler service and used ant to buid and deploy it as a Sar file.
The weird thing is that, the service is triggered as expected but, it exited without throwing any Exceptions.
Wonder if anybody can help here? Very much appreciated.
Thanks,
Richard
Here are some more details:
Jboss-service.xml
<server>
<loader-repository>
daemon.service:archive=es_daemon_ant
</loader-repository>
<mbean code="org.jboss.varia.scheduler.Scheduler" name=":service=Scheduler">
<attribute name="StartAtStartup">true</attribute>
<attribute name="SchedulableClass">ca.alc.es.daemon.DaemonQuartzAdapter</attribute>
<attribute name="InitialStartDate">NOW</attribute>
<attribute name="SchedulePeriod">5000</attribute>
<attribute name="InitialRepetitions">-1</attribute>
</mbean>>
</server>
DaemonQuartzAdapter.java
public void perform(Date arg0, long arg1) {
System.out.println("entering try part");
Daemon dm = ContextLoader.getDaemon();
System.out.println("This is daemon 2");
dm.processPendingTransactions();
System.out.println("This is daemon performing after!!!");}
from the log,
I can only see: "entering try part". from the log.
And that is it, no exceptions no other logs, so that scheduled task just end like that.