Bob,

So if I'm understanding correctly, you're concerned that there might be
existing messages in the DLQ at the time you enabled the
discardingDLQBrokerPlugin, and you want a way to clear out those
pre-existing messages. Your use of the discardingDLQBrokerPlugin already
ensures that any new messages will not go to the DLQ, so by also purging
the pre-existing messages you ensure that there will never be any messages
in the DLQ. Is that indeed what you're looking to do?

If so, you only need to purge the existing messages once (since no new
messages will get into the DLQ after that point), so the simplest solution
would seem to be just doing a one-time manual purge of the DLQ from the web
console. Would that work for your needs?

Tim

On Mon, Apr 1, 2019 at 9:18 PM Bob <malkanz...@gmail.com> wrote:

> Hi Tim,
>
> My intention is like to automatically purge all the messages which was
> there(existing) in the Activemq.DLQ. Is there any such way to do that apart
> from manual purging? Currently im using this discarding plugin
> <discardingDLQBrokerPlugin dropOnly="ActiveMQ.DLQ" reportInterval="1000"/>
> but through some search it mentions that this plugin will only avoid the
> next coming message from being insert or send to DLQ queue.
>
> Thanks for your reply
>
>
>
>
> --
> Sent from:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
>

Reply via email to