You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Bruce Snyder <br...@gmail.com> on 2007/08/17 00:43:31 UTC

Re: A Unsubscribe XML message sample for the servicemix-wsn2005 component

On 7/31/07, bgoetzmann <bg...@sophia.symag.com> wrote:
>
> Hello,
>
> The "servicemix-wsn2005" page
> (http://incubator.apache.org/servicemix/servicemix-wsn2005.html) gives the
> example of a Subscribe XML message that one can use to send to the
> NotificationBroker, exposed to the outside world, via HTTP in order to
> subscribe to a particular topic.
>
> It would be a good thing to show how to unsubscribe for a given topic. I
> suppose you must use the subscription reference that tou get with the
> SubscribeRepsonse message and the topic's name.
>
> Is someone has an example of a Unsubcribe XML message?

There is a test case that performs an unsubscribe in the
WSNComponentTest.testUnsubscribe() method. The source is here:

http://svn.apache.org/viewvc/incubator/servicemix/trunk/deployables/serviceengines/servicemix-wsn2005/src/test/java/org/apache/servicemix/wsn/component/WSNComponentTest.java?view=markup

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/
Castor - http://castor.org/