My work is (unfortunately) still using JBoss-2.4.10-Tomcat-4.0.6. There is a MDB that is called by a custom scheduler (implements org.jboss.varia.scheduler.Schedulable). Supposedly, this scheduler works, although I cannot seem to find any evidence of this. The scheduler is JAR'd and placed in the JBOSS_HOME/jboss/lib/ext directory. Here the entry in JBOSS_HOME/jboss/conf/catalina/jboss.jcml
<mbean code="org.jboss.util.Scheduler" name=":service=Scheduler"> <arg type="java.lang.String" value=":server=Scheduler"/> <arg type="java.lang.String" value="com.healthdec.base.service.scheduler.Scheduler"/> <arg type="java.lang.String" value="dayTopic,day task"/> <arg type="java.lang.String" value="java.lang.String, java.lang.String"/> <arg type="long" value="0"/> <arg type="long" value="1000"/> <arg type="long" value="-1"/> </mbean>
Well I found a few sources of the problem. 1) The varia scheduler must not be compatible with 2.4.x, only 3.0.x. 2) The syntax of the Scheduler needed to be changed. I changed it to fit the commented example Scheduler in the jboss.jcml