public String toString() {
   StringBuffer sb = new StringBuffer("JBossMessage[");
   sb.append("");
   sb.append(getJMSMessageID());
   sb.append("]:");
   sb.append(message.isDurable() ? "PERSISTENT" : "NON-PERSISTENT");
   return sb.toString();
 }
 public int getJMSDeliveryMode() throws JMSException {
   return message.isDurable() ? DeliveryMode.PERSISTENT : DeliveryMode.NON_PERSISTENT;
 }