[ https://issues.apache.org/jira/browse/CAMEL-3254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12988438#action_12988438 ]
Claus Ibsen commented on CAMEL-3254: ------------------------------------ A few comments ============= 1) dont add camel-core-xml or camel-core-osgi as dep. in maven. Those are _abstract_ components which gets embedded into spring / blueprint components. 2) I have modified the logic a bit so {{RoutePolicyProcessor}} includes the list of policies. This avoid chaining a new processor for each policy. This just makes the runtime route even longer and just a bit more hazzle when debugging etc. The processor performs the same work for 1 or N route policy defined. It performs the begin/done callbacks. 3) The DSL should be adjusted in both Java DSL and Spring XML. When we added support for multiple route policies you could not set those in the Java DSL using objects. You would have to use the ref. So I had added that. Also the javadoc should be updated to indicate that the {{routePolicyRef}} accepts multiple refs separated by comma. 4) I will also add the unit test to spring component. Its important that the DSL is tested well in camel-core and camel-spring. > Cannot set multiple route policies on a route in Spring > ------------------------------------------------------- > > Key: CAMEL-3254 > URL: https://issues.apache.org/jira/browse/CAMEL-3254 > Project: Camel > Issue Type: Improvement > Components: camel-core > Affects Versions: 2.4.0 > Reporter: Fintan Bolton > Assignee: Ashwin Karpe > Fix For: 2.7.0 > > Attachments: CAMEL-3254-multiple-route-policies.patch > > > The Spring grammar does not seem to provide a way of specifying multiple > policies. E.g. > <route routePolicyRef="myFirstPolicy"> > ... > </route> > There is nowhere to inject a second policy, because there is only one > attribute provided. > While it is possible to set multiple unrelated policies (for e.g > ScheduledRoutePolicy and say Shiro SecurityPolicy) which necessitate a > different Spring XML fragment, it is not possible at the moment to set > multiple policy sets in Spring against a route. It is possible to set up > different start, stop, suspend & resume times in the same policy. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.