WebLogic Messaging API Class Library

ISession.Unsubscribe\xA0Method\xA0

Unsubscribes a durable subscription that has been created by a client.

This method deletes the state being maintained on behalf of the subscriber by the JMS system.

It is erroneous for a client to Delete a durable subscription while there is an active IMessageConsumer for the subscription, or while a consumed message is part of a pending transaction or has not been acknowledged in the session.

void\xA0Unsubscribe(
\xA0\xA0\xA0String\xA0name
);

Parameters

String
the name used to identify this subscription

Exceptions

Exception TypeCondition
MessageExceptionif the session fails to Unsubscribe to the durable subscription due to some internal error.
InvalidDestinationExceptionif an invalid subscription name is specified.

See Also

ISession Interface | WebLogic.Messaging Namespace