activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From afant <allenf...@gmail.com>
Subject Re: Retry connection on broker start when database is unavailable
Date Mon, 24 Jun 2013 16:35:07 GMT
I just tried the 5.9 nightly snapshot.  On my broker I set
restartAllowed="true".  Then, I tried to start the broker while the database
was down, and the broker still failed to start.  I saw a restart was
triggered by the default IO exception handler, and since the database was
still down a RuntimeException was thrown ("Failed to execute start task. 
Reason: java.lang.IllegalStateException: BeanFactory not initialized or
already closed - call 'refresh' before accessing beans via the
ApplicationContext....)

The desired behavior would be to just continue to retry the database
connection.  I even tried adding retryconnection parameters to mysql url ex:
autoReconnect=true&amp;maxReconnects=2147483647.

Thanks,
Allen



--
View this message in context: http://activemq.2283324.n4.nabble.com/Retry-connection-on-broker-start-when-database-is-unavailable-tp4668329p4668528.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message