Feb 3rd, 2009, 07:15 PM
Spring batch - sample application without schedular - need help
I'm new to spring batch. I executed FootBall job using Quartz schedular
succesfully. In my real time requirment, I don't need to use any schedular,as we are having ctrl+m schedular, that will trigger the batch job.
I want to execute Football with out using schedular. I tried to run the sample using TaskExecutor Launcher, and getting the following exception.
Started application. Please connect using JMX (remember to use -Dcom.sun.management.jmxremote if you can't see anything in Jconsole)
my bean configuration in simple-jab-launcher.xml is as follows
<bean id="jobLauncher" class="org.springframework.batch.core.launch.suppo rt.SimpleJobLauncher">
<property name="jobRepository" ref="jobRepository" />
<bean class="org.springframework.core.task.SyncTaskExecu tor" />
As I'm running out of time, your early response would be highly appreciated.
Feb 4th, 2009, 04:29 PM
Can any one please reply to my question?
Feb 12th, 2009, 10:28 AM
If I understand your problem correctly, you want to execute your job without schedulling it through Quartz. You can use CommandLineJobRunner to kick-start your job. It takes two arguments:
- The name of the application context containing the bean definition for job to launch
Feb 12th, 2009, 10:38 AM
You are right. I realized that later.
Thanks for the response.