Please take a look at the ProducerTemplate, there are lots of method that you can use.

BTW, the procduer.prcoess() method will invoke the web service synchronously.
On 8/25/11 4:03 PM, xiangqiuzhao wrote:
         Producer producer = endpoint.createProducer();
         producer.process(exchange);

         return exchange.getOut().getBody();

i have put the message to direct compoment, and want to get the response in
sync mode. the remote is web services server. but how to ensure to return
the out message body after the producer's processes run finished.

--
View this message in context: 
http://camel.465427.n5.nabble.com/how-to-get-response-on-synchronous-in-cxf-module-tp4733514p4733514.html
Sent from the Camel - Users mailing list archive at Nabble.com.



--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang

Reply via email to