You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by bharadwaj <bh...@gmail.com> on 2014/11/03 10:18:11 UTC

Re: route information is not coming with camelContext.getRoute("route1")

The old option shouldStartContext have been removed and replaced with this
new autoStartup option instead. What it allows is to configure Camel to not
auto start when Spring starts.

So how do you start Camel then?
The autoStartup option on the <camelContext> is only used once, so you can
manually start Camel later by invoking its start method as shown below:
ApplicationContext ac = ...
SpringCamelContext camel = (SpringCamelContext) ac.getBean("myCamel");
 
// now start Camel manually
camel.start();

once you camel context is active running then only you can get route
definition.




--
View this message in context: http://camel.465427.n5.nabble.com/route-information-is-not-coming-with-camelContext-getRoute-route1-tp5758371p5758444.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: route information is not coming with camelContext.getRoute("route1")

Posted by chaituu <ya...@gmail.com>.
How do i get application context to do ac.getBean("camel");



--
View this message in context: http://camel.465427.n5.nabble.com/route-information-is-not-coming-with-camelContext-getRoute-route1-tp5758371p5758502.html
Sent from the Camel - Users mailing list archive at Nabble.com.