There isn't an explicit "Unsubscribe" operation at this time.  I think
it's in the works for the next release, but it'll basically do the same
as subscriptionClient.destroy(), which will terminate the subscription.
As Chris pointed out, it doesn't terminate the producer resource itself,
only the SubscriptionManager resource which manages the subscription for
the producer.

There have been several discussions about this in previous postings.
You can do a search on "unsubscribe" and get more info about why it
is/isn't needed.
 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 03, 2007 4:31 PM
To: [email protected]
Subject: RE: How to unsubscribe a consumer

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]

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

Reply via email to