Since a provider may allocate some resources on behalf of a IMessageConsumer outside the Java virtual machine, clients should Close them when they are not needed. Relying on garbage collection to eventually reclaim these resources may not be timely enough.
This call blocks until a Receive or message listener in progress has completed. A blocked message consumer Receive call returns null when this message consumer is closed.
| Exception Type | Condition |
|---|---|
| MessageException | if the JMS provider fails to Close the consumer due to some internal error. |
IMessageConsumer Interface | WebLogic.Messaging Namespace