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
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 ]
We can do it !!
Now do i need to add any jar related to org.apache.commons.collections.SetUtils..
Yes, you've got it right. You need Jakarta's Commons Collections library. If you have downloaded Spring with all dependencies, you can find it in the "lib/jakarta-commons" folder, named commons-collections.jar.