Creates an IMessageConsumer for the specified destination. Since IQueue and ITopic both inherit from IDestination, they can be used in the destination parameter to create an IMessageConsumer.
IDestination to access. An IMessageConsumer for the specified destination
| Exception Type | Condition |
|---|---|
| MessageException | if the session fails to create a consumer due to some internal error. |
| InvalidDestinationException | if an invalid destination is specified. |
ISession Interface | WebLogic.Messaging Namespace | ISession. Overload List