Hi Giovanni,

Calling destroy seems to work fine for me:

SubscriptionClient client = resource.subscribe(source, new
TopicFilter(someTopicQName), null); 
..
..
client.destroy()
..
..

destroys a SubscriptionManager resource, not the resource that is being
subscribed to.  I've also tested this with persistent subscriptions and
it seems to work fine (without affecting the original resource).

cheers,
Chris

-----Original Message-----
From: Giovanni Aiello [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 03, 2007 12:38 PM
To: [email protected]
Subject: How to unsubscribe a consumer

Hi all,
I've some problem to perform the unsubscribe of a subscribed consumer.
The SubscriptionClient class doesn't have a unsubscribe() method, but
also a destroy method. Nevertheless, when I call subscription.destroy(),
the remove of the "WSResource" occurs, so I don't think that it
represents the best way to perform the unsubscribe!
Any experience?

Thanks
Giovanni

 

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

Reply via email to