try { acquireLock(); ready = false; if (log.isTraceEnabled()) { log.trace("set ready to false"); } } finally { releaseLock(); }
ready = false;  if (log.isTraceEnabled()) { log.trace("set ready to false"); }
   public synchronized void deactivate() throws JMSException   {      try      {         acquireLock();         ready = false;         if (log.isTraceEnabled()) { log.trace("set ready to false"); }      }      finally      {         releaseLock();      }   }