I set the incoming windows size to 0. After receiving the message, no disposition message is sent (in this case to accept and it should sent automatically due to zero windows size). However, If I call the "accept" method followed by the "work" method, the disposition frame was sent.The strange behavior is when I call the "reject" method followed by the "work" method : in that case the disposition frame was sent but with the Accepted annotation instead of the Rejected annotation. :-( Paolo PatiernoSenior Software Engineer
Windows Embedded & IoTMicrosoft Azure Advisor Twitter : @ppatierno Linkedin : paolopatierno Blog : DevExperienceBlog : Embedded101 > Date: Mon, 8 Feb 2016 18:23:39 +0000 > From: [email protected] > To: [email protected] > Subject: Re: Rejecting/Accepting message with Qpid Proton-J > > On 02/08/2016 06:15 PM, Paolo Patierno wrote: > > I already did that. The documentation says that with incoming windows size > > to 0, the message should be automatically acknowledged (so disposition > > frame should be sent) ... but it doesn't happen. > > Ah, I thought that when you said 'the client doesn't send the > disposition frame to the broker with rejected annotation' you meant that > the disposition was sent but that it did not contain a rejected status. > You are saying that no disposition is sent at all? > > Does proton-j have the equivalent of pn_messenger_work? And if so are > you calling that after the reject? or pn_messenger_recv again? > > (In order to set the status to rejected, you will need to increase the > window, at least if it follows the proton-c logic). > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] >
