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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
Session
public Session()
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