[prev in list] [next in list] [prev in thread] [next in thread] 

List:       activemq-users
Subject:    Re: Divert messages
From:       Justin Bertram <jbertram () apache ! org>
Date:       2021-07-27 14:08:31
Message-ID: CAF+kE=RUQhjAg1bYiVXWuGmnNf3PwFtRC1jKz-0CzugCnSW0eA () mail ! gmail ! com
[Download RAW message or body]


> Would someone confirm I can divert message from one address (with several
queues) to another "spy" queue?

Yes, I can confirm. We even ship an example demonstrating this behavior.
It's in the examples/features/standard/divert directory. Have you examined
this example?

> What is the correct syntax?

Divert syntax is described in the documentation and specifically in the
aforementioned example.

> May be I'm too blind, but docs seems not too clear for me, and I've
tryied several setups (including copying from examples in Github), but
still not working.

From what I can tell based on your previous messages your configuration is
simply incorrect. At the very least the forwarding-address of your divert
did not match the address name you had. I described this problem in a
previous message, but you never responded.

Also, it looked like you were trying to use FQQN at some point (i.e. using
my-portal::sf000144_01 or my-portal::sf000144_02). I'm not actually sure
how a divert would work if you sent a message directly to a queue on an
address where a divert is listening. My guess is that it wouldn't work
because you're bypassing the address altogether so there would be nothing
for the divert to work with.

Hope that helps!


Justin

On Tue, Jul 27, 2021 at 1:30 AM Edson Richter <edsonrichter@hotmail.com>
wrote:

> Please,
> Would someone confirm I can divert message from one address (with several
> queues) to another "spy" queue?
> What is the correct syntax? May be I'm too blind, but docs seems not too
> clear for me, and I've tryied several setups (including copying from
> examples in Github), but still not working.
>
> Thanks in advance,
>
> ER
>
>
> Enviado do Email<https://go.microsoft.com/fwlink/?LinkId=550986> para
> Windows 10
>
> De: Edson Richter<mailto:edsonrichter@hotmail.com>
> Enviado:sexta-feira, 23 de julho de 2021 17:33
> Para: users@activemq.apache.org<mailto:users@activemq.apache.org>
> Assunto: RES: Divert messages
>
> Right, I forgot to put in the provided example – follow with complete
> address declarations:
>
>
> <!-- queue specifications -->
> <addresses>
> <address name="sf000144_debug" ><multicast>
> <queue name="dbg"><durable>true</durable></queue>
> </multicast></address>
> <address name="my-portal"><anycast>
> <queue name="sf000144_01"><durable>true</durable></queue>
> <queue name="sf000144_02"><durable>true</durable></queue>
> </anycast></address>
> </addresses>
>
> <-- divert rule -->
> <diverts>
>     <divert name="my-divert">
>         <routing-name>sf000144_debug</routing-name>
>         <address>my-portal</address>
>         <forwarding-address>sf000144_debug.dbg</forwarding-address>
>         <exclusive>false</exclusive>
>     </divert>
> </diverts>
>
>
>
> Enviado do Email<https://go.microsoft.com/fwlink/?LinkId=550986> para
> Windows 10
>
> De: Justin Bertram<mailto:jbertram@apache.org>
> Enviado:sexta-feira, 23 de julho de 2021 17:28
> Para: users@activemq.apache.org<mailto:users@activemq.apache.org>
> Assunto: Re: Divert messages
>
> Where is the address "sf000144_debug.dbg" defined? I don't see it in your
> <addresses> block.
>
>
> Justin
>
> On Fri, Jul 23, 2021 at 3:18 PM Edson Richter <edsonrichter@hotmail.com>
> wrote:
>
> > Hi!
> >
> > I've been trying to "divert" messages for my team debugging purposes.
> >
> > What I have done so far:
> >
> > <!-- queue specifications -->
> > <addresses>
> > <address name="my-portal"><anycast>
> > <queue name="sf000144_01"><durable>true</durable></queue>
> > <queue name="sf000144_02"><durable>true</durable></queue>
> > </anycast></address>
> > </addresses>
> >
> > <-- divert rule -->
> > <diverts>
> >     <divert name="my-divert">
> >         <routing-name>sf000144_debug</routing-name>
> >         <address>my-portal</address>
> >         <forwarding-address>sf000144_debug.dbg</forwarding-address>
> >         <exclusive>false</exclusive>
> >     </divert>
> > </diverts>
> >
> >
> > What I did I expect: "all messages sent to my-portal::sf000144_01 or to
> > my-portal::sf000144_02 have a copy into sf000144_debug::dbg queue"
> >
> > Nothing gets "diverted" into the "sf000144_debug.dbg" queue – also tryied
> > just the address "sf000144_debug".
> > I get no log or console message that would help to identify why messages
> > are not being copied into the new queue.
> > Your help will be higly appreciated.
> >
> >
> > Regards,
> >
> > ER
> >
> > Enviado do Email<https://go.microsoft.com/fwlink/?LinkId=550986> para
> > Windows 10
> >
> >
>
>
>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic