[prev in list] [next in list] [prev in thread] [next in thread]
List: activemq-users
Subject: Re: Replacing composite queues with Artemis
From: Calle Andersson <calleandersson () hotmail ! com>
Date: 2023-11-17 10:34:05
Message-ID: DU0PR07MB91621E7EE48F56F642FDB199D5B7A () DU0PR07MB9162 ! eurprd07 ! prod ! outlook ! com
[Download RAW message or body]
Thanks for your suggestion and the comment regarding send-to-dla-on-no-route.
I will probably use your approach. However, I did try to do a little adjustment by \
defining the DLQ address like this (since that appears to be similar to how \
auto-create-dead-letter-resources creates queues when set to true): <address \
name="DLQ"> <multicast>
<queue name="DLQ.TEST.QUEUE.A">
<filter string="NOT(MyMessageProperty='SYSTEM_X') AND \
NOT(MyMessageProperty='SYSTEM_Y')"/> </queue>
</multicast>
</address>
The divert is forwarding to that queue using the fully qualified queue name \
DLQ::DLQ.TEST.QUEUE.A like this: \
<forwarding-address>TEST.QUEUE.A.SYSTEM_X,TEST.QUEUE.A.SYSTEM_Y,DLQ::DLQ.TEST.QUEUE.A</forwarding-address>
When sending a message with MyMessageProperty set as “dummy” it ends up on \
DLQ::DLQ.TEST.QUEUE.A. However, when setting MyMessageProperty as “'SYSTEM_X” the \
message ends up on both TEST.QUEUE.A.SYSTEM_X and DLQ::DLQ.TEST.QUEUE.A.
When not using the fully qualified queue name and instead forwarding to an address \
with an anycast queue using the exact same filter expression, the message with \
MyMessageProperty set as “'SYSTEM_X” won’t end up on that queue.
Is this a bug or expected behaviour? Should fully qualified queue names be avoided \
when configuring forwarding-address?
Regards,
Calle
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic