activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruce Snyder <>
Subject Re: Persistence Behavior
Date Tue, 15 Sep 2009 22:01:02 GMT
On Tue, Sep 15, 2009 at 12:20 PM, dbczak <> wrote:
> OK, I was able to stop it from waiting forever by setting the
> maxReconnectAttempts setting.  However,  it still does not behave as
> expected.
> Once everything is up and running, I shut down one of the consumers.  In the
> producer I get this error:
> DEBUG - Transport failed with the following
> DEBUG - Attempting connect to: tcp://localhost:61616
> DEBUG - Connect fail to: tcp://localhost:61616, reason:
> Connection refused: connect
> ERROR - Failed to connect to transport after: 1 attempt(s)
> DEBUG - Async exception with no exception listener:
> Connection refused: connect
> Then, every 10 seconds I get these messages:
> DEBUG - 10000 ms elapsed since last write check.
> DEBUG - Message sent since last write check, resetting flag
> When the producer tries to send a message, we get this error.  (Shouldn't
> this just store the peristed message):
> ERROR - Exception caught: javax.jms.JMSException: Connection refused:
> connect
> And finally, when I bring up the crashed consumer,  nothing happens.  It
> does not get the missed messages, and the producer continues to print out
> the same message every 10 seconds.

The producer must have a valid connection to the broker in order to
send the message. Is the producer using the failover transport to
connect to the broker? This is the easiest way to get automatic
reconnection from the client side.

perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"

ActiveMQ in Action:

View raw message