I have tried this method but the channel.send() will send a new message to the called service not reply.
The future.get() method will block and never get reply message. Maciek Prochniak wrote: > > it's covered here: > http://servicemix.apache.org/servicemix-bean.html > please, look at 'Message processing' example > > br, maciek > > On Sun, 2009-11-15 at 22:30 -0800, youhaodeyi wrote: >> I use servicemix-bean component to deploy my service unit and set a field >> with @ExchangeTarget annotation. See below: >> >> @ExchangeTarget(uri = "service:http://com.test.service/myservice") >> public Destination target; >> >> future = target.send(targetMsg); >> NormalizedMessage retMsg = future.get(); >> >> target.send() is called to send the message to myservice and waiting for >> reply. How can I reply the message in myservice? myservice implements >> MessageExchangeListener interface. >> >> thanks, >> >> Zhao Yi >> >> > > > -- View this message in context: http://old.nabble.com/How-can-I-send-synchronous-message-by-Destination--tp26367357p26368288.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
