-
Feb 3rd, 2009, 07:15 PM
#1
Spring batch - sample application without schedular - need help
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 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>
As I'm running out of time, your early response would be highly appreciated.
Thanks
Krishna
-
Feb 4th, 2009, 04:29 PM
#2
Can any one please reply to my question?
Thanks
Krishna
-
Feb 12th, 2009, 10:28 AM
#3
Hello Krishna,
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
Thanks,
Aparna Chaudhary
-
Feb 12th, 2009, 10:38 AM
#4
You are right. I realized that later.
Thanks for the response.
Krishna
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