I've been experimenting with my first schedulable implementation and I've hit a problem with the scheduable class implementation kicking off before my own app is fully activated.
My scheduler is defined in the deployment folder 'scheduler-service-.xml' file, as...
<mbean code="org.jboss.varia.scheduler.Scheduler" name=":service=Scheduler"> <attribute name="StartAtStartup">true</attribute> <attribute name="SchedulableClass">com.eis.tm.gateway.email.EmailResponseCheckerTask</attribute> <attribute name="SchedulableArguments">email,1</attribute> <attribute name="SchedulableArgumentTypes">java.lang.String,int</attribute> <attribute name="InitialStartDate">0</attribute> <attribute name="SchedulePeriod">30000</attribute> <attribute name="InitialRepetitions">-1</attribute> </mbean>