activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From moreno9000 <>
Subject Re: How to "activate" an interceptor
Date Tue, 24 Nov 2009 10:16:21 GMT

I want to discard sent messages if number of pending messages
exceed a predefined limit.
The reasons for this choice are:

AMQ side: I'd like to prevent problems due to a queue with
a high number of pending messages. In 5.1 release I saw that
consumers stop receving messages from a queue with too
many messages previously not consumed. This doesn't happen
in 5.3, but in 5.3 I wasn't able to advice a producer that it was
filling the queue so...   

Client side: I'd like to raise an exception to producer in order
to say it "Please, stop sending messages till messages are read
by a consumer".

bsnyder wrote:
> Does this mean that you're going to discard new messages that are sent
> to the queue if a predefined number of messages already exists? Seems
> like an odd use case. What exactly are you trying to achieve? Please
> describe the business use case, not the code use case.

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message