-
1. Re: MBean and Scheduling
jachildress Aug 5, 2003 7:44 PM (in response to johnurban)Hey John,
have you checked out Quartz?
http://www.part.net/quartz.html
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.
John
thanks for the matlab help too ;-) -
2. Re: MBean and Scheduling
ivelin.ivanov Aug 6, 2003 9:39 PM (in response to johnurban)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. -
3. Re: MBean and Scheduling
mcvt Sep 5, 2003 2:04 AM (in response to johnurban)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. -
4. Re: MBean and Scheduling
ivelin.ivanov Sep 7, 2003 11:54 PM (in response to johnurban)The JBoss Administration book talks about the Scheduler.
A recent article can be used as a less detailed source of information:
http://www.onjava.com/pub/a/onjava/2003/08/20/jboss_clustering.html
Ivelin -
5. Re: MBean and Scheduling
ebasley Sep 19, 2003 6:16 AM (in response to johnurban)Hy,
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 ?
Regards.
Eric -
6. Re: MBean and Scheduling
normal Oct 13, 2003 3:18 AM (in response to johnurban)how to deploy the Quartz as a MBean?
chould u give me an example?
thx in advance! -
7. Re: MBean and Scheduling
brianko Oct 30, 2003 12:55 PM (in response to johnurban)"brianko" wrote:
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