WebLogic Messaging API Class Library |

# IMessageConsumer.ReceiveNoWait Method

Receives the next message if one is immediately available.

IMessage ReceiveNoWait();

#### Return Value

the next message produced for this message consumer, or null if one is not available or the connection is stopped

#### Exceptions

Exception Type | Condition
--- | ---
MessageException | if JMS fails to receive the next message due to some internal error.

#### See Also

IMessageConsumer Interface | WebLogic.Messaging Namespace