Announcement Announcement Module
Collapse
No announcement yet.
why isn't my JobLauncher picked up by admin when it is by spring batch? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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"

    Comment

    Working...
    X