Announcement Announcement Module
No announcement yet.
Automatic Job Registrar + Remote Partitioning Page Title Module
Move Remove Collapse
Conversation Detail Module
  • 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:

    And, for your particular problem, we ended up creating a StepRegistry much like what the JobRegistry does today (identifying jobs per name):

    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