IMessageConsumer for the specified destination, using a message selector. Since IQueue and ITopic both inherit from IDestination, they can be used in the destination parameter to create a IMessageConsumer. A client uses a IMessageConsumer object to receive messages that have been sent to a destination.
IDestination to access An IMessageConsumer for the specified destination
| Exception Type | Condition |
|---|---|
| MessageException | if the session fails to create a IMessageConsumer due to some internal error. |
| InvalidDestinationException | if an invalid destination is specified. |
| InvalidSelectorException | if the message selector is invalid. |
ISession Interface | WebLogic.Messaging Namespace | ISession.CreateConsumer Overload List | Message selector syntax.