Sun GlassFish Message Queue 4.4 Developer's Guide for Java Clients

Processing Text Messages

The text message method getText (Table 2–20 ) retrieves the contents of a text message’s body in the form of a string:

String  textBody = inMsg.getText();
Table 2–20 Text Message Access Method

Name 

Description 

getText

Get content string