Delete specific message in activemq queue from c# -
I am coding with C # and activemq, using NMS and Apache-active MT-5.9.1 I am I want to set a unique GUID for each message when I send it to a custom property, then I can delete a specific message with its grid (do not clear the queue, just delete a message). I got such a question, but there is no answer to this, so I ask again.
There are only two things that can do with NMS API in this regard. The first question is, as the entire destination has been removed.
Second, the user who is assigned a selector who will match the message you want to discard. The consumer will receive and the ACK message which will be removed from the broker. This works when the depth of the queue is not so good that the message has been stored in message message archive and it is not being adequately enlarged due to the maximum page settings in ActiveMax.
The only solution is to use the REST API provided by Joelokia to reach AOTMQ MBN and try to delete the message, although you still have to issue the message in offline memory Can not go and not being able to be in the page to be removed
The basic problem here is that you can use Active MQ as a database Are not trying to do this (or any other JMS broker), this is an anti-pattern that comes often if you want to access the message on the way to DB, then use DB, you can use your DB You will save yourself a lot of time and effort.
Comments
Post a Comment