Hi Jonathan.

The filtering used in the ServiceMix specific pub/sub model, is really simple : you can provide on the subscription spec, a bean that must implement a given interface that allows exchange filtering.
If the exchange does not match, it is discarded (for this subscription).

In WS-Notification, currently the only way is to use jms selectors which will be applied by the underlying activemq broker. However this is quite useless, as people will want to filter on the content of the notification message. This should be done using xpath on the notification message,
but this has not been implemented yet.

For the moment, the best way would be to put an xslt router (which do handle in-only) in between the notification broker and the subscriber so that it can filter the messages and discard them. I agree
that this is not the best solution ...

Cheers,
Guillaume Nodet

[EMAIL PROTECTED] wrote:

I am curious to understand how subscription filtering is implemented within
the pub-sub model of ServiceMix. Is it implemented through WS-Notification
or another mechanism? Is there a good example of filtering in the source
code? Perhaps I am thinking about this the wrong way - any help is
appreciated.

/jonathan



Reply via email to