java.lang.Object | +----com.ibm.jms.JMSMessage | +----com.ibm.jms.JMSTextMessage
A TextMessage is used to send a message containing a java.lang.String. It inherits from JMSMessage and adds a text body.
When a client receives a TextMessage, it is in read-only mode. If a client attempts to write to the message at this point, a MessageNotWriteableException is thrown. If clearBody() is called, the message can then be both read from and written to.
public void clearBody() throws JMSException;
Clears out the message body. No other part of the message is changed.
public String getText() throws JMSException;
Gets the String containing this message's data. The default value is null.
public void setText(String messageText) throws JMSException;
Sets the String containing this message's data.
public String toString();
Returns a String containing a formatted version of the Message.
Notices |
Downloads |
Library |
Support |
Feedback
![]() ![]() |
csqzaw1387 |