Results 1 to 2 of 2

Thread: why isn't my JobLauncher picked up by admin when it is by spring batch?

  1. #1
    Join Date
    Aug 2011
    Posts
    16

    Default why isn't my JobLauncher picked up by admin when it is by spring batch?

    I use the following in my job configuration file:

    Code:
    	<bean id="jobLauncher" class="org.xxx.prototype.springbatch.MyJobLauncher">
    		<property name="jobRepository" ref="jobRepository" />
    	</bean>
    When running my job from CLI using Spring Batch only, MyJobLauncher is being used. However when I start it from Spring Batch Admin, SimpleJobLauncher is being used instead.

    Is there another configuration file I should declare it in instead?
    Thanks!

    Anthony

  2. #2
    Join Date
    Aug 2011
    Posts
    16

    Default

    answering my own question, i had skimmed through the "getting started" at http://static.springsource.org/sprin...g-started.html, which clearly states that one can override spring batch admin's default config by creating a Spring XML config file in "META-INF/spring/batch/override"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •