my route config: <camelContext id="myContext" xmlns="http://camel.apache.org/schema/spring" > <route> <from uri="cxf:bean:helloService"></from> <to uri="mock:end"></to> </route> </camelContext> my cxf config: <cxf:cxfEndpoint id="helloService" address="/addOrder" serviceClass="com.xxx.IOrderService"> </cxf:cxfEndpoint> when the route work in a web container, i want to send message to uri (cxf:bean:helloService) with producerTemplate,but it's not work and throws : java.net.MalformedURLException: no protocol: /addOrder
code like this: (springContext is XmlWebApplicationContext) CamelContext camelContext = (CamelContext)springContext.getBean("myContext"); ProducerTemplate template = camelContext.createProducerTemplate(); Exchange exchange = new DefaultExchange(camelContext); exchange.getIn().setBody("message"); template.send("cxf:bean:helloService",exchange); -- View this message in context: http://camel.465427.n5.nabble.com/how-can-i-send-message-to-cxf-component-with-producerTemplate-tp5718227.html Sent from the Camel - Users mailing list archive at Nabble.com.