WebLogic Messaging API Class Library |

# ISession.CreateTextMessage Method ()

Creates an `ITextMessage` object. An `ITextMessage` object is used to send a message containing a `String` object.

ITextMessage CreateTextMessage();

#### Return Value

An `ITextMessage` object

#### Exceptions

Exception Type | Condition
--- | ---
MessageException | if JMS fails to create this message due to some internal error.

#### See Also

ISession Interface | WebLogic.Messaging Namespace | ISession. Overload List