1 7 package org.jboss.jms.server.standard; 8 9 import org.jboss.jms.message.JBossMessage; 10 import org.jboss.jms.server.MessageReference; 11 12 18 public class StandardMessageReference 19 implements MessageReference 20 { 21 23 25 26 private JBossMessage message; 27 28 30 32 public StandardMessageReference(JBossMessage message) 33 { 34 this.message = message; 35 } 36 37 39 41 public JBossMessage getMessage() 42 throws Exception 43 { 44 return message; 45 } 46 47 public int getPriority() 48 throws Exception 49 { 50 return message.getJMSPriority(); 51 } 52 53 public String getMessageID() 54 throws Exception 55 { 56 return message.getJMSMessageID(); 57 } 58 59 61 63 65 67 } 68 | Popular Tags |