activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin C." <>
Subject Re: Producer blocks on send method when not connected to broker
Date Thu, 27 Oct 2011 09:08:15 GMT

what transport are you using? If you are using the failover transport,
look at the failover options at,
especially at the timeout. I noticed that the sendTimeout is not
always used when using a failover transport, if the connection itself

Best regards,

On Tue, Oct 25, 2011 at 8:08 PM, JacobS <> wrote:
> I am using ActiveMQ 5.5 and I have a MessageProducer that is sending messages
> to a broker.
> I set this Producers SendTimeout to 10000 (in the connectionFactory ) but
> when the connection with the broker breaks the producer blocks on send
> infinitely. This causes a growing memory leak in my application (which often
> is not connected to a broker and messages are trying to be sent in a new
> thread each time)
> What an I doing wrong ?
> --
> View this message in context:
> Sent from the ActiveMQ - User mailing list archive at

View raw message