I followed the instructions found at several locations (seemed to be the same).
When my org.jboss.varia.scheduler.Scheduler start it says it cannot find my target class. I even tried a jar with my class in the default/lib folder and it could not find it. I can use the jmx GUI to load the class. To rule out a classloading order issue I added a depends. I also modifed the Scheduler-service.xml after the app containing the class loaded to ensure the class was available.
JBoss 4.0.4.GA
AND: Should we use Scheduler or ScheduleManager class?
Scheduler-service.xml
true
com.dbfacade.MsgToSendCleanup
6/26/06 17:37
30000
-1
jboss.j2ee:url=Server.ear,service=EARDeployment
Class contains:
package com.dbfacade;
import java.util.Date;
import org.jboss.varia.scheduler.Schedulable;
public class MsgToSendCleanup implements Schedulable
{
public void perform(Date date, long param) {
ServerDBUtil.getInstance().cleanOldMsgToSend();
}
}
I was able to get it to find classes in server\default\lib after a JBoss server restart.
How do I get the scheduler to find a class in my web app?