On Tue, Sep 15, 2009 at 12:20 PM, dbczak <z...@dbconcert.com> 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 exception:java.io.EOFException
> DEBUG - Attempting connect to: tcp://localhost:61616
> DEBUG - Connect fail to: tcp://localhost:61616, reason:
> java.net.ConnectException: Connection refused: connect
> ERROR - Failed to connect to transport after: 1 attempt(s)
> DEBUG - Async exception with no exception listener:
> java.net.ConnectException: 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.

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

ActiveMQ in Action: http://bit.ly/2je6cQ
Blog: http://bruceblog.org/
Twitter: http://twitter.com/brucesnyder

Reply via email to