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 or until this message consumer is closed.

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

IMessage ();

Return Value

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

Exceptions

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

See Also

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