Camel
  1. Camel
  2. CAMEL-5717

Allow use of Routebuilder in RouteContext in XML schema

    Details

    • Estimated Complexity:
      Unknown

      Description

      Currently, the XML schema does not permit use of RouteBuilders in a RouteContext.

      This has been discussed on the mailing list: http://camel.465427.n5.nabble.com/RouteBuilder-not-allowed-in-RouteContext-why-td5721184.html

      The improvement would add camelContext's powerful feature of mixing Java DSL and XML based route declarations also to the routeContext.

      For illustration, the following XML does not validate since the camel:routeBuilder element is not allowed in a camel:routeContext:

      <camel:routeContext id="fooRouteContext">
          <camel:routeBuilder ref="fooRouteBuilder"/>
      </camel:routeContext>
      

        Activity

        Hide
        ASF GitHub Bot added a comment -

        Github user SvenNold closed the pull request at:

        https://github.com/apache/camel/pull/91

        Show
        ASF GitHub Bot added a comment - Github user SvenNold closed the pull request at: https://github.com/apache/camel/pull/91
        Hide
        Sven Nold added a comment -

        GitHub user SvenNold opened a pull request:

        https://github.com/apache/camel/pull/91

        Camel 5717

        https://issues.apache.org/jira/browse/CAMEL-5717

        Supporting:

        • empty routeContext
        • routeBuilderRef
        • routeContextRef
        Show
        Sven Nold added a comment - GitHub user SvenNold opened a pull request: https://github.com/apache/camel/pull/91 Camel 5717 https://issues.apache.org/jira/browse/CAMEL-5717 Supporting: empty routeContext routeBuilderRef routeContextRef
        Hide
        Sven Nold added a comment -

        As requested also consider the following:

        http://camel.465427.n5.nabble.com/routeContext-features-td5746235.html

        Short list:

        • routeContext must not be empty
        • routeBuilder (ref) not supported (as above)
        • routeContextRef not supported
        Show
        Sven Nold added a comment - As requested also consider the following: http://camel.465427.n5.nabble.com/routeContext-features-td5746235.html Short list: routeContext must not be empty routeBuilder (ref) not supported (as above) routeContextRef not supported

          People

          • Assignee:
            Unassigned
            Reporter:
            Robert Stepanek
          • Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:

              Development