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 12:23:38 GMT
zhaoyi0113@gmail.com wrote:
> I am new to QPID. I am using Java broker and want to setup a sync message
> call between server and client. I use this API to send message:
> 
> session.messageTransfer("amq.direct", MessageAcceptMode.EXPLICIT,
> 					MessageAcquireMode.PRE_ACQUIRED, header,
> 					"Message5 " + i);
> 
> I want to wait for server reply. How can I do this in Java-QPID?

What language is your client using? Assuming that's Java, then you would 
invoke sync after invoking messageTransfer:

session.messageTransfer(...);
session.sync();

--Rafael

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


Mime
View raw message