-
Oct 6th, 2012, 11:38 PM
#1
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.
-
Oct 7th, 2012, 03:26 AM
#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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules