throw new JBossJMSException("Message " + messageID +
throw new MessagingJMSException("Message " + messageID +
   void acknowledge(long messageID, Transaction tx) throws JMSException   {      if (trace) { log.trace("acknowledging " + messageID); }            SingleReceiverDelivery d = null;            if (tx == null)      {         // No transaction so we remove the delivery now         d = (SingleReceiverDelivery)deliveries.remove(new Long(messageID));      }      else      {         // The actual removal of the deliveries from the delivery list is deferred until tx commit         d = (SingleReceiverDelivery)deliveries.get(new Long(messageID));         if (deliveryCallback == null)         {            deliveryCallback = new DeliveryCallback();            tx.addCallback(deliveryCallback);         }         deliveryCallback.addMessageID(messageID);               }      if (d != null)      {         try         {            d.acknowledge(tx);         }         catch(Throwable t)         {            throw new JBossJMSException("Message " + messageID +                                        "cannot be acknowledged to the source", t);         }       }      else      {         throw new IllegalStateException("Failed to acknowledge delivery " + d);      }          }