I need a way to have a session bean's method executed periodically every week at a certain time. I am thinking of using the quartz scheduler to do this. My question is, how do I start the scheduler to run from the moment the .ear file is deployed automatically? Is there any annotation that I can use on the stateless session bean calling the scheduler.start method such as @PostConstruct or something?
I know you can set a servlet to init/load automatically on ear deployment. Not sure how to do so for an EJB. You could always write a servlet which calls your EJB.
My enterprise application only has a backend, and all ive found on the net is using servlet to initialise the scheduler.
My goal is to automate method invocation on one of my stateless session beans, periodically via cron trigger.
Any clues?
Bring me the box labeled "thinking cap" ... and then read this tiny ad: