how to invoke a Router in Camel context via a Java code. Tried this -
in Java Class : ApplicationContext context = new ClassPathXmlApplicationContext("*camel_context.xml*"); CamelContext camel = SpringCamelContext.springCamelContext(context); camel.startRoute("*firstRoute*"); in camel_context.xml : <bean id="<b>testRoute*" class="org.apache.camel.processor.RouterTest"/> <camelContext trace="false" id="TestRouterCamel" xmlns="http://camel.apache.org/schema/spring"> <route id="<b>firstRoute*"> <from uri="direct:start" /> <to uri="<b>testRoute*" /> </route> </camelContext> Trying to invoke firstRoute in camel_context.xml via java class. any help would be appreciated. Thanks in advance. -- View this message in context: http://camel.465427.n5.nabble.com/Invoking-a-Router-via-Java-Processor-tp5760612.html Sent from the Camel Development mailing list archive at Nabble.com.