Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-3254

Cannot set multiple route policies on a route in Spring

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.7.0
    • Component/s: camel-core
    • Labels:
      None

      Description

      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.

        Attachments

        There are no Sub-Tasks for this issue.

          Activity

            People

            • Assignee:
              akarpe Ashwin Karpe
              Reporter:
              fbolton Fintan Bolton
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: