You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by Andrew Buckley <an...@microsoft.com> on 2015/11/04 00:10:48 UTC

Proton-J get "first" field from disposition frame

Hi all,

I'm attempting to get the delivery id or "first" field from a disposition that my client receives after it sends a message. I'm using Proton-J and the Reactor. I can see that the disposition frame comes in and that the "first" field matches the deliveryId and deliveryTag of the sent message. The onDelivery callback fires and I'm able to get the Delivery, but it seems as though at this point the only place the deliveryId exists is within a private TransportDelivery object that cannot be accessed.

Any guidance would be helpful.

Thanks,
Andrew


RE: Proton-J get "first" field from disposition frame

Posted by Andrew Buckley <an...@microsoft.com>.
Gotcha. That works, thanks! 

Although it would seem to me that there is no harm in exposing the id/tag, just for reading.

-----Original Message-----
From: Robbie Gemmell [mailto:robbie.gemmell@gmail.com] 
Sent: Tuesday, November 3, 2015 5:16 PM
To: dev@qpid.apache.org
Subject: Re: Proton-J get "first" field from disposition frame

I haven't used the reactor bits, but I'd guess this is the same....when using the engine 'directly' the Delivery object(s) updated and referred to by the delivery event(s) corresponds to the the message(s) that the disposition acted upon, i.e the transport has already done the matching for you, which I'd guess is one reason the API doesn't expose the deliveryId, coupled with the delivery-tag being a more relevant marker for application use.

Robbie

On 4 November 2015 at 00:59, Andrew Buckley <an...@microsoft.com> wrote:
> Thanks for the quick response!
> I'd like to match the response I get to a specific message that was sent. So if I'm sending multiple messages, I'd like to be able to know which message a particular disposition frame corresponds to. And, correct me if I'm wrong (perhaps I'm thinking about this wrong), right now the only thing I'd be able to do is count how many dispositions come back. I'm able to get the remote delivery state of the disposition, but that doesn't seem incredibly helpful unless I can match it to a message.
>
> -Andrew
>
> -----Original Message-----
> From: Robbie Gemmell [mailto:robbie.gemmell@gmail.com]
> Sent: Tuesday, November 3, 2015 4:49 PM
> To: dev@qpid.apache.org
> Subject: Re: Proton-J get "first" field from disposition frame
>
> Hi Andrew,
>
> I happened to be looking in a related area earlier and believe you are 
> correct, it is not possible to access the deliveryId since the API 
> doesnt expose that detail and it is only managed internally by the
> transport+session (along with the dispositions themselves). What it is
> you need the deliveryId for?
>
> Robbie
>
> On 3 November 2015 at 23:10, Andrew Buckley <an...@microsoft.com> wrote:
>> Hi all,
>>
>> I'm attempting to get the delivery id or "first" field from a disposition that my client receives after it sends a message. I'm using Proton-J and the Reactor. I can see that the disposition frame comes in and that the "first" field matches the deliveryId and deliveryTag of the sent message. The onDelivery callback fires and I'm able to get the Delivery, but it seems as though at this point the only place the deliveryId exists is within a private TransportDelivery object that cannot be accessed.
>>
>> Any guidance would be helpful.
>>
>> Thanks,
>> Andrew
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org For additional 
> commands, e-mail: dev-help@qpid.apache.org
>

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


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

Re: Proton-J get "first" field from disposition frame

Posted by Robbie Gemmell <ro...@gmail.com>.
I haven't used the reactor bits, but I'd guess this is the
same....when using the engine 'directly' the Delivery object(s)
updated and referred to by the delivery event(s) corresponds to the
the message(s) that the disposition acted upon, i.e the transport has
already done the matching for you, which I'd guess is one reason the
API doesn't expose the deliveryId, coupled with the delivery-tag being
a more relevant marker for application use.

Robbie

On 4 November 2015 at 00:59, Andrew Buckley <an...@microsoft.com> wrote:
> Thanks for the quick response!
> I'd like to match the response I get to a specific message that was sent. So if I'm sending multiple messages, I'd like to be able to know which message a particular disposition frame corresponds to. And, correct me if I'm wrong (perhaps I'm thinking about this wrong), right now the only thing I'd be able to do is count how many dispositions come back. I'm able to get the remote delivery state of the disposition, but that doesn't seem incredibly helpful unless I can match it to a message.
>
> -Andrew
>
> -----Original Message-----
> From: Robbie Gemmell [mailto:robbie.gemmell@gmail.com]
> Sent: Tuesday, November 3, 2015 4:49 PM
> To: dev@qpid.apache.org
> Subject: Re: Proton-J get "first" field from disposition frame
>
> Hi Andrew,
>
> I happened to be looking in a related area earlier and believe you are correct, it is not possible to access the deliveryId since the API doesnt expose that detail and it is only managed internally by the
> transport+session (along with the dispositions themselves). What it is
> you need the deliveryId for?
>
> Robbie
>
> On 3 November 2015 at 23:10, Andrew Buckley <an...@microsoft.com> wrote:
>> Hi all,
>>
>> I'm attempting to get the delivery id or "first" field from a disposition that my client receives after it sends a message. I'm using Proton-J and the Reactor. I can see that the disposition frame comes in and that the "first" field matches the deliveryId and deliveryTag of the sent message. The onDelivery callback fires and I'm able to get the Delivery, but it seems as though at this point the only place the deliveryId exists is within a private TransportDelivery object that cannot be accessed.
>>
>> Any guidance would be helpful.
>>
>> Thanks,
>> Andrew
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org For additional commands, e-mail: dev-help@qpid.apache.org
>

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


RE: Proton-J get "first" field from disposition frame

Posted by Andrew Buckley <an...@microsoft.com>.
Thanks for the quick response! 
I'd like to match the response I get to a specific message that was sent. So if I'm sending multiple messages, I'd like to be able to know which message a particular disposition frame corresponds to. And, correct me if I'm wrong (perhaps I'm thinking about this wrong), right now the only thing I'd be able to do is count how many dispositions come back. I'm able to get the remote delivery state of the disposition, but that doesn't seem incredibly helpful unless I can match it to a message.

-Andrew

-----Original Message-----
From: Robbie Gemmell [mailto:robbie.gemmell@gmail.com] 
Sent: Tuesday, November 3, 2015 4:49 PM
To: dev@qpid.apache.org
Subject: Re: Proton-J get "first" field from disposition frame

Hi Andrew,

I happened to be looking in a related area earlier and believe you are correct, it is not possible to access the deliveryId since the API doesnt expose that detail and it is only managed internally by the
transport+session (along with the dispositions themselves). What it is
you need the deliveryId for?

Robbie

On 3 November 2015 at 23:10, Andrew Buckley <an...@microsoft.com> wrote:
> Hi all,
>
> I'm attempting to get the delivery id or "first" field from a disposition that my client receives after it sends a message. I'm using Proton-J and the Reactor. I can see that the disposition frame comes in and that the "first" field matches the deliveryId and deliveryTag of the sent message. The onDelivery callback fires and I'm able to get the Delivery, but it seems as though at this point the only place the deliveryId exists is within a private TransportDelivery object that cannot be accessed.
>
> Any guidance would be helpful.
>
> Thanks,
> Andrew
>

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


Re: Proton-J get "first" field from disposition frame

Posted by Robbie Gemmell <ro...@gmail.com>.
Hi Andrew,

I happened to be looking in a related area earlier and believe you are
correct, it is not possible to access the deliveryId since the API
doesnt expose that detail and it is only managed internally by the
transport+session (along with the dispositions themselves). What it is
you need the deliveryId for?

Robbie

On 3 November 2015 at 23:10, Andrew Buckley <an...@microsoft.com> wrote:
> Hi all,
>
> I'm attempting to get the delivery id or "first" field from a disposition that my client receives after it sends a message. I'm using Proton-J and the Reactor. I can see that the disposition frame comes in and that the "first" field matches the deliveryId and deliveryTag of the sent message. The onDelivery callback fires and I'm able to get the Delivery, but it seems as though at this point the only place the deliveryId exists is within a private TransportDelivery object that cannot be accessed.
>
> Any guidance would be helpful.
>
> Thanks,
> Andrew
>

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