activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bravegag <>
Subject creating custom Limit Strategy
Date Tue, 20 Oct 2009 13:50:01 GMT


I need a variant of the existing constantPendingMessageLimitStrategy that
extends it in functionality so it would not only discard messages but also
"let the publisher know" that the message has been discarded. This I can do
by replying to the replyTo queue assumed to be contained in the message
itself. This is specially useful for Topic MessageProducers that are
synchronous and waiting for a confirmation.

So to summarize this custom strategy will:
- Extend constantPendingMessageLimitStrategy
- send a null/discarded message signal back if there is a queue in the
replyTo field of the message.

Is there a guide how to create and integrate custom strategies?

Many thanks in advance,
Best regards,
View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message