qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Conway <acon...@redhat.com>
Subject Re: Delivery settlement using Qpid proton 0.16.0 C++ bindings
Date Mon, 20 Feb 2017 19:48:23 GMT
On Wed, 2017-02-15 at 16:56 +0000, Antoine Chevin wrote:
> Hello,
> 
> 
> 
> We are experimenting the delivery settlement using Qpid proton C++
> bindings.
> 
> Is there a way to find out if the delivery is remotely settled?
> 
> 
> 
> In our case, we want to implement client acknowledgment of a message
> like
> it is done in JMS.
> 
> We want to be sure that, when our ‘acknowledge’ method returns, the
> delivery is actually settled.
> 
> To perform the client acknowledgment, we store a copy of the delivery
> object and call ‘accept()’ on it when the client acknowledges.
> 
> 
> 
> We tried to use delivery.settled() to verify if the delivery is
> remotely
> settled but it returns always false. Do you know why?
> 
> 
> 
The API has changed a bit, the C delivery object is split into two
parts, the "tracker" for the sender side and the "delivery" for the
receiver. The example proton/examples/cpp/simple_send.cpp shows how you
can track acknowledgements to sent messages.

Cheers,
Alan.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Mime
View raw message