Has anybody used the JBoss scheduler to automate some background task processing ? While I am familiar with setting up the scheduler-service.xml, I want to know if it is possible to programmatically get a scheduler to run rather than relying on the timer that it uses. To illustrate:
If ClassA is setup to run whenever the scheduler runs say every 5 mins, can I use another program to run ClassA on demand ?
Murali
There are two ways to deploy your ClassA, you can have the scheduler create and call an instance of it, or deploy ClassA as an MBean. If you do the latter, you can activate your class on demand through JMX.