WebLogic Messaging API Class Library

ISession.CreateConsumer\xA0Method\xA0(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\xA0CreateConsumer(
\xA0\xA0\xA0IDestination\xA0destination
);

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