Results 1 to 2 of 2

Thread: Automatic Job Registrar + Remote Partitioning

Hybrid View

  1. #1
    Join Date
    Oct 2012
    Posts
    1

    Default Automatic Job Registrar + Remote Partitioning

    Hi All,

    In our Spring Batch Application we are using AutomaticJobRegistrar instead of default one to have separate child context for all jobs and for security reasons.The normal spring batch jobs are functionning properly but the remote partition jobs are not running when it is used in conjunction with the AutomaticJobRegistrar.Remote partitioning uses the spring integration and the error i am getting when launching the remote partition job is "No such step defined:Mydefinedstep" and it is comming from the spring integration code.

    Kindly help in this regard.

  2. #2

    Default

    Yes. The step can't be located because it sits in a child application context that the Spring integration code does not have access to.

    We had the same kind of issue when we implemented our GenericPartitioner to perform remote partitioning. This blog post describes what we did:
    http://labs.bsb.com/2011/11/remote-p...-spring-batch/

    And, for your particular problem, we ended up creating a StepRegistry much like what the JobRegistry does today (identifying jobs per name):
    https://github.com/snicoll/spring-ba...pRegistry.java

    For your particular problem now, there's a way to deal with it with the current code but you need to change a bit what you put in your child context. Look at BeanFactoryStepLocator

Posting Permissions

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