Announcement Announcement Module
Collapse
No announcement yet.
Automatic Job Registrar + Remote Partitioning Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

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

    Comment

    Working...
    X