activemq-users mailing list archives

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

Hello,

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,
Giovanni
-- 
View this message in context: http://www.nabble.com/creating-custom-Limit-Strategy-tp25975430p25975430.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message