Jan 23rd, 2007, 08:01 PM
[Off-topic] How to trigger an EJB method periodically
We have an EJB method (in weblogic 8.1) that must be executed periodically (eg: every minute). My doubt is how to invoke this method periodically. I was thinking about create a simple client to invoke the method and schedule it in the machine crontab.
Is there any better solution?
Jan 23rd, 2007, 10:39 PM
Yes. You can create a quartz job to invoke your EJB. The reference manual should be a good place to start.
Jan 24th, 2007, 02:54 AM
I would agree with Bill. There are a few ways of solving the problem, the reference manual has several examples that should be of use. Something like MethodInvokingJobDetailFactoryBean might be of use.
Jan 24th, 2007, 06:01 AM
Using Quartz bring me a problem.
If my support team wants to stop this batch procecess?
They need to stop my application? I think it's more confortable to them just to comment a line in the crontab.
How do you see this?
Jan 24th, 2007, 06:04 AM
You don't have to stop the server if you want to stop the job. You can unschedule jobs.
Jan 24th, 2007, 07:34 AM
How can I unschedule my job? JMX?
I'm using Weblogic 8.1 with Java 1.4. Is this possible?