Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
2.10.1
-
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>