msgunsubscribe

Description

JMS only – provides a SQL interface to unsubscribe a topic for the current Adaptive Server session.

Syntax

msg_unsubscribe::=msgunsubscribe 
	(subscription_name [with {remove | retain}])
		subscription_name::=basic_character_expression

Parameters

subscription_name

is the name of the subscription to which you are subscribing. A basic_character_expression.

with {remove | retain}

removes or retains the durable subscription from the JMS message provider.

Examples

Example 1

Tells the JMS messaging provider to stop holding messages published to the topic registered as “subscription_1”:

select msgunsubscribe('subscription_1')

Usage