I have created a sample application/ example for Scheduler / Scheduling using Quartz way in Spring. But I am not able to get the desired output.. the scheduler actually not getting called..
I also refered James Goodwill's
A_simple_quartz_spring_example. But there inside the main method he have used some code like this as below..
I didnt get, what thisLookupFactory.getInstance(); method is doing and how to configure that.
Below are my setup and codes..
The Package Structure and Jars I have used is:
And below are the actual files i have used:
1. My Spring config file named (sched.xml) is: 2. Interface IMyJob.java 3. MyJobImpl.java 4. MyJobHandler.java 5. ExampleJob.java 6. my Main Execution Class named DoMyJobApp.java Currently Output I am getting is:
Before Scheduler starts....
Gettting bean...
From MyJobImpl:: Have a great day !!
After Scheduler starts....
Problem i am facing is that Scheduler is neither executing the executeInternal() method from MyJobHandler class (as it should due to org.springframework.scheduling.quartz.JobDetailBean as set in sched.xml) nor its executing doForMe() from ExampleJob class (as it should due to org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean as set in sched.xml). Please suggest me what configurations need to change.. and how exactly to load the config file and make the Scheduler run successfully.
[ September 04, 2007: Message edited by: shibaram sahoo ]