Hi, what transport are you using? If you are using the failover transport, look at the failover options at http://activemq.apache.org/failover-transport-reference.html, especially at the timeout. I noticed that the sendTimeout is not always used when using a failover transport, if the connection itself breaks.
Best regards, Martin On Tue, Oct 25, 2011 at 8:08 PM, JacobS <[email protected]> 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: > http://activemq.2283324.n4.nabble.com/Producer-blocks-on-send-method-when-not-connected-to-broker-tp3937653p3937653.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. >
