Name

TextMessage

Synopsis

A TextMessage is a Message whose body is a String. The contents of the message can be retrieved using the getText() method. The text of the message might be simple ASCII, or it could be structured according to a syntax like HTML or XML.

                  Returned By
public interface TextMessage extends javax.jms.Message {
// Public Instance Methods
   public abstract String getText() throws JMSException;  
   public abstract void setText(
        String string) throws JMSException;  
}

Returned By

javax.jms.Session.createTextMessage()

Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.