Hello everyone,
I am using ActiveMQ Artemis 2.31.2 and Amqpnetlite library in .NET.I want to 
simulate a publish-subscribe scenario where I have an address as a topic, and 
then multiple queues connected to that address. Each queue will have a filter 
that checks the message's subject (JMSType). This way I can have the same 
behaviour as RabbitMQ (topic edge/publish-subscribe).
Everything works as expected when I create addresses and queues using the 
Amqpnetlite library, the only thing that I need and it doesn't work, is to 
change the filter for a queue after it was created. I tried to send a Source 
with an addres of an existing queue and the value of the filter modified, but 
this resulted in the queue to be deleted and recreated with the new filter. 
This means that all the messages will be lost and will only work if the queue 
has no consumer.
The Artemis implementation: 



The AMQP protocol states that the properties of a terminus should be updated if 
they don't match the one sent by the client:

Is this a bug or it was intended to have this behavior and not follow the AMQP 
protocol? Can it be changed in a way that the filter is updated without 
deleting the queue?
Best regards

Reply via email to