public void handleConnectionException(Throwable t, Client client)
public synchronized void handleConnectionException(Throwable t, Client client)
   public void handleConnectionException(Throwable t, Client client)   {        String remotingSessionID = client.getSessionId();      if (t instanceof ClientDisconnectedException)      {         // This is OK         if (log.isTraceEnabled()) { log.trace(this + " notified that client " + client + " has disconnected"); }         return;      }            ServerConnectionEndpoint ce = (ServerConnectionEndpoint)connections.remove(remotingSessionID);      if (ce == null)      {         //Not all remoting sessions correspond to jms connections so this is ok to ignore                  return;      }            log.warn(this + " handling client " + remotingSessionID + "'s remoting connection failure " +            "(" + (t == null ? "null Throwable" : t.getClass().toString()) + ")", t);      try      {         ce.close();         log.debug("cleared up state for connection " + ce);      }      catch (JMSException e)      {         log.error("Failed to close connection", e);      }   }