throw new JBossJMSException("Delivery mode must be either DeliveryMode.PERSISTENT "
throw new MessagingJMSException("Delivery mode must be either DeliveryMode.PERSISTENT "
   public void setJMSDeliveryMode(int deliveryMode) throws JMSException   {      if (deliveryMode == DeliveryMode.PERSISTENT)      {         reliable = true;      }      else if (deliveryMode == DeliveryMode.NON_PERSISTENT)      {         reliable = false;      }      else      {         throw new JBossJMSException("Delivery mode must be either DeliveryMode.PERSISTENT "               + "or DeliveryMode.NON_PERSISTENT");      }   }