jms4spread
Class Session

java.lang.Object
  |
  +--jms4spread.Session
Direct Known Subclasses:
TopicSession

public class Session
extends java.lang.Object

A session is a context for producing and consuming messages


Field Summary
static int AUTO_ACKNOWLEDGE
           
static int CLIENT_ACKNOWLEDGE
           
static int DUPS_OKAY_ACKNOWLEDGE
           
 
Constructor Summary
Session()
           
 
Method Summary
 MapMessage createMapMessage()
          Creates a Map Message
 ObjectMessage createObjectMessage()
          Creates a Object Message
 StreamMessage createStreamMessage()
          Creates a Stream Message
 TextMessage createTextMessage()
          Creates a Text Message
 TextMessage createTextMessage(java.lang.String s)
          Creates a Text Message
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AUTO_ACKNOWLEDGE

public static final int AUTO_ACKNOWLEDGE

CLIENT_ACKNOWLEDGE

public static final int CLIENT_ACKNOWLEDGE

DUPS_OKAY_ACKNOWLEDGE

public static final int DUPS_OKAY_ACKNOWLEDGE
Constructor Detail

Session

public Session()
Method Detail

createTextMessage

public TextMessage createTextMessage()
                              throws JMSException
Creates a Text Message
Returns:
the TextMessage
Throws:
JMSException - in case of internal error

createTextMessage

public TextMessage createTextMessage(java.lang.String s)
                              throws JMSException
Creates a Text Message
Parameters:
s - the text of the message
Returns:
the TextMessage
Throws:
JMSException - in case of internal error

createStreamMessage

public StreamMessage createStreamMessage()
                                  throws JMSException
Creates a Stream Message
Returns:
the StreamMessage
Throws:
JMSException - in case of internal error

createMapMessage

public MapMessage createMapMessage()
                            throws JMSException
Creates a Map Message
Returns:
the MapMessage
Throws:
JMSException - in case of internal error

createObjectMessage

public ObjectMessage createObjectMessage()
                                  throws JMSException
Creates a Object Message
Returns:
the Object Message
Throws:
JMSException - in case of internal error