WebLogic Messaging API Class Library

IMessageConsumer.Receive 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.

IMessage Receive();

Return Value

the next message produced for this message consumer, or null if this message consumer is concurrently closed or stopped


Exception TypeCondition
MessageExceptionif JMS fails to receive the next message due to some internal error.

See Also

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