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

Create a spring DSL, where we can introduce interceptors without explicit listing

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Abandoned
    • 2.10.4
    • Future
    • camel-spring
    • Any

    • Moderate

    Description

      We have a spring DSL based Camel system. I wanted to introduce an interceptor for one of the routes, but I wanted to define it on a separate xml file. So when the xml is added to the Spring Context Loader than the interceptor is active otherwise it isn't.

      Unfortunately camel support contextScan and packageScan for camel routes defined with JAVA.

      My work around currently is having a bean, which have a route definition and start up time camel context is injected. So it registers itself to the route.

      But a more fluent solution would be welcome.

      More details: http://camel.465427.n5.nabble.com/Refering-implicitly-to-routeContext-td5730047.html#a5730204

      Attachments

        Activity

          People

            Unassigned Unassigned
            edvicif David Cifer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: