There articles may help:
http://www.ibm.com/developerworks/autonomic/library/ac-musewsn1.html?S_TACT=105AGX09&S_CMP=EDU
http://www.ibm.com/developerworks/autonomic/library/ac-musequery/index.html?S_TACT=105AGX09&S_CMP=EDU


Balan Subramanian 
Autonomic Computing, IBM, RTP, NC
919.543.0197 | [EMAIL PROTECTED]






Bogdan Solomon <[EMAIL PROTECTED]> 
07/18/2007 01:53 PM
Please respond to
[email protected]


To
[email protected]
cc

Subject
Re: How to filter subscribers during a notification







If I understand correctly you wish to have your subscriber send the 
message
to only some of the consumers subscribed to a topic. 

Muse has the idea of Filters for publishing. The consumer can specify the
filter it wants to be used by the subscription manager using the subscribe
method (on the SubscriptionClient) and passing to it a Filter (second
element). The Filter must implement the Filter interface in
org.apache.muse.ws.notification and must be serializable via XML. 

When the SubscriptionManager gets to publishing a message it checks if the
filter accepts it. If it doesn't then it is not published.

Not sure what your case is for rejection, but you might be able to pass
information about the client in the filter sent to the manager. Each 
client
from what I see in the source code, has it's own filter.


Giovanni Aiello wrote:
> 
> Hi all,
> is it possible to filter some subscriber/consumer during a notification?
> i.e. I hava a capability implementing a method that calls the
> "wsn.publish(_TOPIC_NAME, payload)" operation related to a topic. I 
don't
> want to send the notification to a consumer subscribed to the same 
topic.
> 
> Thanks, regards
> Giovanni
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-filter-subscribers-during-a-notification-tf4104673.html#a11673756

Sent from the Muse User mailing list archive at Nabble.com.


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


Reply via email to