You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by VERMEULEN Olivier <Ol...@murex.com> on 2018/07/03 13:34:32 UTC

[Dispatch Router] non-destructive consumers

Hello,

I've been playing with the non-destructive consumers fro the past few days.

First I will explain the use case that works.
If I create a queue on a Broker-J (7.0.3) with ensureNonDestructiveConsumers set to true and I put a message in it, then any consumer I create for this queue will read this single message, as expected from non-destructive consumers.

Now if I add a Dispatch-Router (0.7.0) in front of my broker, then the first consumer I create will receive the message but the second one will receive null...
Did I miss some configuration on the Dispatch-Router side?

Thanks,
Olivier
*******************************

This e-mail contains information for the intended recipient only. It may contain proprietary material or confidential information. If you are not the intended recipient you are not authorised to distribute, copy or use this e-mail or any attachment to it. Murex cannot guarantee that it is virus free and accepts no responsibility for any loss or damage arising from its use. If you have received this e-mail in error please notify immediately the sender and delete the original email received, any attachments and all copies from your system.

Re: [Dispatch Router] non-destructive consumers

Posted by Gordon Sim <gs...@redhat.com>.
On 04/07/18 13:22, VERMEULEN Olivier wrote:
> Indeed with link-routes everything is working as expected.
> This brings another question though.
> I see in the docs that if I want to use server-side collectors I must use autolinks.
> But If want to use non-destructive consumers I have to use linkRoutes.
> And it looks like I will have to handle both use cases (not at the same time so far).
> So the question is, can I mix autolinks and linkRoutes in the dispatch-router configuration?

Yes, for different addresses you can use different routing choices.

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


RE: [Dispatch Router] non-destructive consumers

Posted by VERMEULEN Olivier <Ol...@murex.com>.
Indeed with link-routes everything is working as expected.
This brings another question though.
I see in the docs that if I want to use server-side collectors I must use autolinks.
But If want to use non-destructive consumers I have to use linkRoutes.
And it looks like I will have to handle both use cases (not at the same time so far).
So the question is, can I mix autolinks and linkRoutes in the dispatch-router configuration?

Thanks,
Olivier

-----Original Message-----
From: VERMEULEN Olivier 
Sent: mercredi 4 juillet 2018 09:23
To: users@qpid.apache.org
Subject: RE: [Dispatch Router] non-destructive consumers

Thanks for the quick reply.
I will try with link-routes then.

Olivier

-----Original Message-----
From: Ted Ross <tr...@redhat.com> 
Sent: mardi 3 juillet 2018 15:48
To: users@qpid.apache.org
Subject: Re: [Dispatch Router] non-destructive consumers

On Tue, Jul 3, 2018 at 9:34 AM, VERMEULEN Olivier <Ol...@murex.com> wrote:
> Hello,
>
> I've been playing with the non-destructive consumers fro the past few days.
>
> First I will explain the use case that works.
> If I create a queue on a Broker-J (7.0.3) with ensureNonDestructiveConsumers set to true and I put a message in it, then any consumer I create for this queue will read this single message, as expected from non-destructive consumers.
>
> Now if I add a Dispatch-Router (0.7.0) in front of my broker, then the first consumer I create will receive the message but the second one will receive null...
> Did I miss some configuration on the Dispatch-Router side?

I assume that you used an auto-link to connect to the broker queue.
In this case, there is only one consumer on the queue, the router, and it gets a copy of the message to distribute accordingly.

If you used a link-route instead, then each remote consumer would have its own subscription on the queue and get its own copy of the message.

Let me know if you'd like a more specific answer with regard to the configuration.

-Ted

>
> Thanks,
> Olivier
> *******************************
>
> This e-mail contains information for the intended recipient only. It may contain proprietary material or confidential information. If you are not the intended recipient you are not authorised to distribute, copy or use this e-mail or any attachment to it. Murex cannot guarantee that it is virus free and accepts no responsibility for any loss or damage arising from its use. If you have received this e-mail in error please notify immediately the sender and delete the original email received, any attachments and all copies from your system.

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

*******************************

This e-mail contains information for the intended recipient only. It may contain proprietary material or confidential information. If you are not the intended recipient you are not authorised to distribute, copy or use this e-mail or any attachment to it. Murex cannot guarantee that it is virus free and accepts no responsibility for any loss or damage arising from its use. If you have received this e-mail in error please notify immediately the sender and delete the original email received, any attachments and all copies from your system.

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


RE: [Dispatch Router] non-destructive consumers

Posted by VERMEULEN Olivier <Ol...@murex.com>.
Thanks for the quick reply.
I will try with link-routes then.

Olivier

-----Original Message-----
From: Ted Ross <tr...@redhat.com> 
Sent: mardi 3 juillet 2018 15:48
To: users@qpid.apache.org
Subject: Re: [Dispatch Router] non-destructive consumers

On Tue, Jul 3, 2018 at 9:34 AM, VERMEULEN Olivier <Ol...@murex.com> wrote:
> Hello,
>
> I've been playing with the non-destructive consumers fro the past few days.
>
> First I will explain the use case that works.
> If I create a queue on a Broker-J (7.0.3) with ensureNonDestructiveConsumers set to true and I put a message in it, then any consumer I create for this queue will read this single message, as expected from non-destructive consumers.
>
> Now if I add a Dispatch-Router (0.7.0) in front of my broker, then the first consumer I create will receive the message but the second one will receive null...
> Did I miss some configuration on the Dispatch-Router side?

I assume that you used an auto-link to connect to the broker queue.
In this case, there is only one consumer on the queue, the router, and it gets a copy of the message to distribute accordingly.

If you used a link-route instead, then each remote consumer would have its own subscription on the queue and get its own copy of the message.

Let me know if you'd like a more specific answer with regard to the configuration.

-Ted

>
> Thanks,
> Olivier
> *******************************
>
> This e-mail contains information for the intended recipient only. It may contain proprietary material or confidential information. If you are not the intended recipient you are not authorised to distribute, copy or use this e-mail or any attachment to it. Murex cannot guarantee that it is virus free and accepts no responsibility for any loss or damage arising from its use. If you have received this e-mail in error please notify immediately the sender and delete the original email received, any attachments and all copies from your system.

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

*******************************

This e-mail contains information for the intended recipient only. It may contain proprietary material or confidential information. If you are not the intended recipient you are not authorised to distribute, copy or use this e-mail or any attachment to it. Murex cannot guarantee that it is virus free and accepts no responsibility for any loss or damage arising from its use. If you have received this e-mail in error please notify immediately the sender and delete the original email received, any attachments and all copies from your system.

Re: [Dispatch Router] non-destructive consumers

Posted by Ted Ross <tr...@redhat.com>.
On Tue, Jul 3, 2018 at 9:34 AM, VERMEULEN Olivier
<Ol...@murex.com> wrote:
> Hello,
>
> I've been playing with the non-destructive consumers fro the past few days.
>
> First I will explain the use case that works.
> If I create a queue on a Broker-J (7.0.3) with ensureNonDestructiveConsumers set to true and I put a message in it, then any consumer I create for this queue will read this single message, as expected from non-destructive consumers.
>
> Now if I add a Dispatch-Router (0.7.0) in front of my broker, then the first consumer I create will receive the message but the second one will receive null...
> Did I miss some configuration on the Dispatch-Router side?

I assume that you used an auto-link to connect to the broker queue.
In this case, there is only one consumer on the queue, the router, and
it gets a copy of the message to distribute accordingly.

If you used a link-route instead, then each remote consumer would have
its own subscription on the queue and get its own copy of the message.

Let me know if you'd like a more specific answer with regard to the
configuration.

-Ted

>
> Thanks,
> Olivier
> *******************************
>
> This e-mail contains information for the intended recipient only. It may contain proprietary material or confidential information. If you are not the intended recipient you are not authorised to distribute, copy or use this e-mail or any attachment to it. Murex cannot guarantee that it is virus free and accepts no responsibility for any loss or damage arising from its use. If you have received this e-mail in error please notify immediately the sender and delete the original email received, any attachments and all copies from your system.

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


Re: [Dispatch Router] non-destructive consumers

Posted by Gordon Sim <gs...@redhat.com>.
On 03/07/18 14:34, VERMEULEN Olivier wrote:
> Hello,
> 
> I've been playing with the non-destructive consumers fro the past few days.
> 
> First I will explain the use case that works.
> If I create a queue on a Broker-J (7.0.3) with ensureNonDestructiveConsumers set to true and I put a message in it, then any consumer I create for this queue will read this single message, as expected from non-destructive consumers.
> 
> Now if I add a Dispatch-Router (0.7.0) in front of my broker, then the first consumer I create will receive the message but the second one will receive null...
> Did I miss some configuration on the Dispatch-Router side?

You will need to use link routing for that queue. With message routing, 
the broker does not see the actual consumers, just the consuming link 
from the router.

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