On Thu, Jul 28, 2011 at 2:35 PM, xiangqiuzhao <[email protected]> wrote: > > Camel In Action 7.7.1 wrote: >> >> The Direct component lets you make a synchronous >> call to a route or, conversely, expose a route as a synchronous service. >> To demonstrate, say you have a route that’s exposed by a direct endpoint >> as follows: >> from("direct:startOrder") >> .to("cxf:bean:orderEndpoint"); >> *Sending a message to the direct:startOrder endpoint* will invoke >> a web service >> defined by the orderEndpoint CXF endpoint bean >> > > my problem is how to sending a message to the direct:startOrder endpoint and > it will be send to CXF endpoint by camel? >
You can use a ProducerTemplate. http://camel.apache.org/producertemplate.html As well as appendix C in the Camel book > > -- > View this message in context: > http://camel.465427.n5.nabble.com/how-to-route-once-from-myComponent-to-cxf-tp4642015p4642434.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
