Results 1 to 4 of 4

Thread: Spring batch - sample application without schedular - need help

  1. #1

    Default 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

  2. #2

    Default

    Can any one please reply to my question?

    Thanks
    Krishna

  3. #3
    Join Date
    Sep 2008
    Location
    Bangalore, India
    Posts
    9

    Default

    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

    • Bean Id of the job


    Thanks,
    Aparna Chaudhary

  4. #4

    Default

    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
  •