WebLogic Messaging API Class Library

ISession. Method (IDestination)

Creates a IMessageConsumer for the specified destination. Since IQueue and ITopic both inherit from IDestination, they can be used in the destination parameter to create a IMessageConsumer.

IMessageConsumer (
   IDestination destination
);

Parameters

IDestination
the IDestination to access.

Return Value

An IMessageConsumer for the specified destination

Exceptions

Exception Type Condition
MessageException if the session fails to create a consumer due to some internal error.
InvalidDestinationException if an invalid destination is specified.

See Also

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