Context.xml is in the same bundle,
how can i access the beans without loading via ApplicationContext.
i'm trying this -
ApplicationContext ac = new
ClassPathXmlApplicationContext("META-INF/spring/camel_spring-ws.xml");
CamelContext context = ac.getBean("camel",CamelContext.class);
Exchange myExchange = new DefaultExchange(context);
exchange.getIn().setBody("Hello");
ProducerTemplate template = context.createProducerTemplate();
template.send("direct:start", myExchange);
to invoke a router defined in camelContext.xml
--
View this message in context:
http://servicemix.396122.n5.nabble.com/The-XML-doesn-t-validates-in-ServiceMix-tp5721993p5722010.html
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.