throw new JBossJMSException("Failed to acknowledge deliveries", t);
throw new MessagingJMSException("Failed to acknowledge deliveries", t);
   void acknowledgeAll() throws JMSException   {      // acknowledge all "pending" deliveries, except the ones correspoding to messages rejected      // by selector, which are cancelled      try      {              for(Iterator i = deliveries.values().iterator(); i.hasNext(); )         {            SingleReceiverDelivery d = (SingleReceiverDelivery)i.next();            if (d.isSelectorAccepted())            {               d.acknowledge(null);            }            else            {               d.cancel();            }         }         deliveries.clear();      }      catch(Throwable t)      {         throw new JBossJMSException("Failed to acknowledge deliveries", t);      }   }