-
Feb 5th, 2009, 02:28 PM
#1
want to run springbatch sample without using QUARTZ or other schedulars.
Hello All,
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 sample 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" />
<property name="taskExecutor">
<bean class="org.springframework.core.task.SyncTaskExecu tor" />
</property>
</bean>
I'm running out of time, and any your help would be highly appreciated.
Thanks
Krishna
-
Feb 5th, 2009, 02:37 PM
#2
If you just want to launch a job from the command line you can use the CommandLineJobRunner.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules