WebLogic Messaging API Class Library |

# ISession.CreateMessage Method

Creates an `IMessage` object. The `IMessage` interface is the root interface of all JMS messages. An `IMessage` object holds all the standard message header information. It can be sent when a message containing only header information is sufficient.

IMessage CreateMessage();

#### Return Value

An `IMessage` 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