Hi,

I am wondering why use of RouteBuilder is not allowed in a RouteContext when
using XML.  I am using Camel 2.10.1. Could this be a defect in the schema or
is there some other reason? Many thanks for Camel BTW.

For example: while I can use a RouteBuilder like this:

<bean id="fooRouteBuilder" class="local.com.foo.FooRouteBuilder"/>

<camel:camelContext>
   <camel:routeBuilder ref="fooRouteBuilder"/>
</camel:camelContext>

the following XML does not validate against the camel XML schema (and
subsequently the context initialization fails):

<bean id="fooRouteBuilder" class="local.com.foo.FooRouteBuilder"/>

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

<camel:camelContext>
    <camel:routeContextRef ref="fooRouteContext"/>
</camel:camelContext>

Thanks,
Robert



--
View this message in context: 
http://camel.465427.n5.nabble.com/RouteBuilder-not-allowed-in-RouteContext-why-tp5721184.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to