have you checked out Quartz?
We are using it for job scheduling with JBoss 3.2.2 and it works great. They even have an MBean that wraps the Scheduler.
Let me know if you have any questions if you decide that Quartz might work for you.
thanks for the matlab help too ;-)
JBoss 3.2.1 and later include a sophisticated Scheduler service. In 3.2.2 it is even clustered.
look for schedule-manager-service.xml under the deploy directory.
Where can you find information about this scheduler, I can use the test, but I cannot find anywhere how you create the "listener" that is called from the scheduler.
Thanks for any reply.
I'm using Quartz thanks to your advice, it can be deployed nice has a MBean, but I can't find a way to create triggers and job ? (the remoteClient example doen't work). Can you explain how you are setting jobs/triggers ?
how to deploy the Quartz as a MBean?
chould u give me an example?
thx in advance!
I did it in very different way. I created a start up class that register my timer Mbean and listener. It is reading my db and start all configured schedules. Also it registers the RMIAdapter to enable JMX management from my application.
What the listener does is to send a JMS message to predefined queue when it gets the notification from timer MBean. The subscribing MDB that does the job will be fired whenever it receive a message.
My plan work fine except that I got IllegalAccessError when I tried to manipulate the Mbean from my application. My plan was to update the DB and restart the MBean whenever the mbean configuration was changed through UI. It worked fine with Weblogic 7.0 but I am having a problem with Jboss 3.0.7.
As long as I do not try to access those Mbean from my application(SessionBean), it just works fine. (You can use HttpAdapter to manage those MBeans.)
I hope it helps