February 2002
Beginner to intermediate
544 pages
10h 23m
English
The TextMessage interface inherits the fields and the methods of the interface javax.jms.Message. The following methods are defined in the interface javax.jms.TextMessage.
public java.lang.String getText()
Gets the string containing this message's data. The default value is null.
RETURNS:
the String containing the message's data
THROWS:
JMSException if the JMS provider fails to get the text due to some internal error
public void setText(java.lang.String string)
Sets the string containing this message's data.
PARAMETERS:
string the String containing the message's data THROWS:
JMSException if the JMS provider fails to set the text due to some internal error MessageNotWriteableException if the message is in read-only ...
Read now
Unlock full access