Hi Willem, thanks for this. I added a comment to the camel-context wiki page with a suggested update. Hope it will be of helpful.
https://cwiki.apache.org/confluence/display/CAMEL/Context?focusedCommentId=30739765&#comment-30739765 <https://cwiki.apache.org/confluence/display/CAMEL/Context?focusedCommentId=30739765&#comment-30739765> Best regards, Robert Willem.Jiang wrote > Hi Robert, > > It is not a bug of camel. > > You need to make sure the context component can load the sub context > first. > So we need add the depends-on attribute like this > <camel:camelContext id="mainCamelContext" depends-on="fooCamelContext"> > <camel:route> > <camel:from uri="jetty:http://localhost:9090/foo"/> > <camel:to uri="context:fooCamelContext:foo.in (http://foo.in)"/> > </camel:route> > </camel:camelContext> > > <camel:camelContext id="fooCamelContext" streamCache="true" >> > <camel:route> > <camel:from uri="direct:foo.in (http://foo.in)"/> > <camel:to uri="log:local.com.foo"/> > </camel:route> > </camel:camelContext> -- View this message in context: http://camel.465427.n5.nabble.com/Context-component-not-found-tp5721236p5721299.html Sent from the Camel - Users mailing list archive at Nabble.com.
