try
if (closed)
   public void activate() throws JMSException   {      try      {         if (log.isTraceEnabled()) { log.trace("activate:" + this); }         acquireLock();                  if (closed)         {            //Do nothing            return;         }                  ready = true;                  promptDelivery();      }      finally      {         releaseLock();      }   }