[ https://issues.apache.org/jira/browse/CAMEL-5311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13284666#comment-13284666 ]
Claus Ibsen commented on CAMEL-5311: ------------------------------------ In the resolveJobLauncher method of the component you lookup the JobLauncher classes. And if there is 1 or more, you grab the first. I suggest to change this to only grab it, if there is exactly 1. If there is 2 or more, then throw a failure. Also I suggest to add this logic to the doStart method, so its run once upon initialization of the component. > Spring Batch component > ---------------------- > > Key: CAMEL-5311 > URL: https://issues.apache.org/jira/browse/CAMEL-5311 > Project: Camel > Issue Type: New Feature > Affects Versions: 2.10.0 > Reporter: Henryk Konsek > Fix For: 2.10.0 > > Attachments: spring-batch.patch > > > I'm attaching completed Spring Batch Component. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira