qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rafael Schloming <rafa...@redhat.com>
Subject Re: How to handle sync call by QPID Java api?
Date Mon, 16 Aug 2010 13:28:50 GMT
zhaoyi0113@gmail.com wrote:
> Yes, I am using Java client. session.sync() doesn't work. What I mean is that
> I send the message and wait for the reply, the current thread will be
> blocked until the reply message is coming. But when I call session.sync()
> method, the method will return immediately. I am looking for a
> request-response communication mode.

Ah, sorry, I thought by server you meant the broker.

Have you looked at the QueueRequestor class that is part of the JMS API? 
It sounds like this will do exactly what you want. Try googling "JMS 
QueueRequestor" for more documentation and examples.


Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org

View raw message