channel.deliver();
   synchronized void cancelAllDeliveries() throws JMSException   {      if (log.isTraceEnabled()) { log.trace(this + " cancels deliveries"); }      for(Iterator i = deliveries.iterator(); i.hasNext(); )      {         Delivery d = (Delivery)i.next();         try         {            boolean canceled = d.cancel();            if (log.isTraceEnabled()) { log.trace(d + (canceled ? " canceled" : " NOT canceled")); }         }         catch(Throwable t)         {            log.error("Cannot cancel delivery: " + d, t);         }         i.remove();      }   }