/* (non-Javadoc) * @see org.hornetq.core.remoting.FailureListener#connectionFailed(org.hornetq.api.core.HornetQException, boolean) */ public void connectionFailed(HornetQException exception, boolean failedOver) { if (exception.getType() == HornetQExceptionType.DISCONNECTED) { HornetQJMSLogger.LOGGER.warn("being disconnected for server shutdown", exception); } else { HornetQJMSLogger.LOGGER.warn( "Notified of connection failure in xa discovery, we will retry on the next recovery", exception); } internalStop(); HornetQRecoveryRegistry.getInstance().failedDiscovery(this); }
@Override protected void finalize() { // I don't think it's a good thing to synchronize a method on a finalize, // hence the internalStop (no sync) call here internalStop(); }
public synchronized void stop() { internalStop(); }