WebLogic Messaging API Class Library |

# IMessageConsumer. Method

Receives the next message produced for this message consumer.

This call blocks indefinitely until a message is produced, the connection is stopped, or until this message consumer is closed.

If this `Receive` is done within a transaction, the consumer retains the message until the transaction commits or rolls back.

#### Overload List

Receives the next message produced for this message consumer. This call blocks indefinitely until a message is produced, the connection is stopped, or until this message consumer is closed. If this `Receive` is done within a transaction, the consumer retains the message until the transaction commits or rolls back.

> IMessage ();

Receives the next message that arrives within the specified timeout interval. This call blocks until a message arrives, the timeout expires, or this message consumer is closed. A `timeout` of zero never expires, and the call blocks indefinitely unless connection stop() is called.

> IMessage (Int64);

#### See Also

IMessageConsumer Interface | WebLogic.Messaging Namespace