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