Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Is it possible to remove messages from an ActiveMQ Artemis queue that don't have an attribute?

I’d need to remove messages from a DLQ in ActiveMQ Artemis that don’t have an attribute set.

As I understand, the JMX operation removeMessages(string) supports a filter expression, but I’m not sure if it’s possible to use something like "attribute is NULL". Is it?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

As noted in the ActiveMQ Artemis documentation, the filter expression syntax supported by the broker mirrors the syntax of JMS selectors which is documented here. Regarding selectors, this documentation states:

If a property that does not exist in a message is referenced, its value is NULL.

So, you can use a selector like attribute is NULL.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading