Hi, I'm trying to use the "maxReconnectAttempts" parameter, but without success.
I'm using a client connection with the following URI: failover:(tcp://localhost:61616,tcp://localhost:61626)?randomize=false&useExponentialBackOff=false&initialReconnectDelay=1000&startupMaxReconnectAttempts=40&maxReconnectAttempts=1 But when I shutdown the broker, and that Client tries to send a message it reports the error: "ActiveMQSessionKernel - Session Already Closed" After I start the broker again, it stills throw the same error. If I remove the maxReconnectAttempts, the client automatically reconnects and the message is successfully sent. What I need is that the client tries to reconnect, if it fails throw the error. Does anyone what configuration should I use? Kind Regards, Nelson Cintra. -- View this message in context: http://activemq.2283324.n4.nabble.com/maxReconnectAttempts-parameter-tp4690272.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.