WebLogic Messaging API Class Library

ISession.CreateConsumer�Method�(IDestination)

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.

IMessageConsumer�CreateConsumer(
���IDestinationdestination
);

Parameters

destination
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.CreateConsumer Overload List