Session.Unsubscribe


Method

Declaration

void Unsubscribe( 
    string name ); 

Purpose

Unsubscribe a durable topic subscription.

Remarks

This method deletes the subscription from the server.

It is illegal to delete an active subscription—that is, while a MessageConsumer or TopicSubscriber exists. Attempting to do so results in EMSException.

It is illegal to delete a subscription while one of its messages is either unacknowledged, or uncommitted (in the current transaction). Attempting to do so results in EMSException.

If the session is closed, this method throws IllegalStateException.

Parameter
Description
name
This name lets the server locate the subscription.

Throws

EMSException

IllegalStateException

InvalidDestinationException

See Also

MessageConsumer

TopicSubscriber

Topic

Session.CreateDurableSubscriber


TIBCO Enterprise Message Service™ .NET Reference
System Release 4.3, February 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com