The NotificationProducerClient.subscribe() method returns a 
SubscriptionClient. This object can be used to communicate with the 
ws-resource that represents your subscription. You can "unsubscribe" by 
destroying the subscription resource:

NotificationProducerClient producer = new NotificationProducerClient(...);
SubscriptionClient sub = producer.subscribe(...);

//
// this will invoke WS-RL Destroy
//
sub.destroy();


You can also use setTerminationTime() to schedule the subscription for a 
later time (rather than immediately).

Dan



"Ramesh Gurunathan" <[EMAIL PROTECTED]> wrote on 12/08/2006 
04:49:51 AM:

> Hi,
> 
> In the wsn-consumer sample, "WsnTestClient.java" demonstrates how to
> subscribe to a Topic.  But I couldn't see anywhere how to unsubscribe
> from a topic. Can you give me some pointers please? thanks
> 
> Ramesh
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to