You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Antoine Chevin <an...@gmail.com> on 2017/02/15 16:56:50 UTC

Delivery settlement using Qpid proton 0.16.0 C++ bindings

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?



Thank you in advance,

Regards,

Antoine

Re: Delivery settlement using Qpid proton 0.16.0 C++ bindings

Posted by Alan Conway <ac...@redhat.com>.
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 \u2018acknowledge\u2019 method returns, the
> delivery is actually settled.
> 
> To perform the client acknowledgment, we store a copy of the delivery
> object and call \u2018accept()\u2019 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