KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > jms > serverless > QueueCarrier


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.jms.serverless;
8
9 import org.jboss.logging.Logger;
10 import java.io.Serializable JavaDoc;
11
12 /**
13  * JMS Message wrapper. It carries additional information that helps the JMS provider to
14  * route the messages to its final destination.
15  *
16  * @author Ovidiu Feodorov <ovidiu@jboss.org>
17  * @version $Revision: 1.1 $ $Date: 2004/04/15 22:54:19 $
18  *
19  **/

20 public class QueueCarrier implements Serializable JavaDoc {
21
22     static final long serialVersionUID = 214803107211354L;
23
24     private String JavaDoc sessionID;
25     private String JavaDoc queueReceiverID;
26     private javax.jms.Message JavaDoc jmsMessage;
27
28     public QueueCarrier(javax.jms.Message JavaDoc jmsMessage) {
29         this(null, null, jmsMessage);
30     }
31
32
33     public QueueCarrier(String JavaDoc sessionID, String JavaDoc queueReceiverID, javax.jms.Message JavaDoc jmsMessage) {
34         this.sessionID = sessionID;
35         this.queueReceiverID = queueReceiverID;
36         this.jmsMessage = jmsMessage;
37     }
38
39     public String JavaDoc getSessionID() {
40         return sessionID;
41     }
42
43     public void setSessionID(String JavaDoc id) {
44         sessionID = id;
45     }
46
47     public String JavaDoc getReceiverID() {
48         return queueReceiverID;
49     }
50
51     public void setReceiverID(String JavaDoc id) {
52         queueReceiverID = id;
53     }
54
55     public javax.jms.Message JavaDoc getJMSMessage() {
56         return jmsMessage;
57     }
58 }
59
Popular Tags