activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Posta <>
Subject Re: Reject queue message if no Consumer is available
Date Tue, 08 Oct 2013 19:28:36 GMT
Well, the whole point of queueing messages is to be able to asynchronously
deliver messages so that consumers don't have to be aware of producers and
vice versa. That is, if there are no consumers, the producers should still
be able to work. Maybe you can describe the problem you're trying to solve
a little better?

On Tue, Oct 8, 2013 at 10:35 AM, Simone Giacomelli <> wrote:

> I'm using ActiveMq in a request/response configuration.
> I was wondering if it is possible to reject Producer message if no Consumer
> is available.
> I did search the forum, googled very much, but found nothing close to my
> scenario.
> My implementation is about a RPC mechanism. So if the requestor (Producer)
> does not have a response (from Consumer) it will hang until a timeout
> happen.
> I would like to remove the timeout and give a (semi) immediate exception to
> the Producer.
> Is it possible through a Broker Filter?  Or by any other means?
> Please, tell me if I missed something useful from my explanation, I'll be
> glad to add further information.
> I'm using ActiveMq 5.8
> Non persistent queue
> I'm using it with Debian Linux and Ms Windows
> Jdk 1.7_21
> In embedded mode.
> best regards
> Simone Giacomelli
> PS I was successfully able to create a customized authentication plugin.
> And another plugin to reject Consumer if Destination have already one
> Consumer
> I love ActiveMQ :)

*Christian Posta*
twitter: @christianposta

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message