@Override public void connectionFailed(final HornetQException me, boolean failedOver) { if (me.getType() == HornetQExceptionType.DISCONNECTED) { // Backup has shut down - no need to log a stack trace HornetQServerLogger.LOGGER.replicationStopOnBackupShutdown(); } else { HornetQServerLogger.LOGGER.replicationStopOnBackupFail(me); } try { stop(); } catch (Exception e) { HornetQServerLogger.LOGGER.errorStoppingReplication(e); } }