Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] Distributed EventAdmin Service

Hi Roshan,

I've done some testing, and determined that the current EventAdmin filtering works fine/ok. What was wrong with your EventHandler service property is that the EVENT_FILTER creation should look like this:

props.put(EventConstants.EVENT_FILTER, "("+EventConstants.EVENT_TOPIC+"="+topic+")");

with this way of defining the event filter the EventAdmin matching works just fine.

I've added this code to the example (org.eclipse.ecf.examples.eventadmin.app), and will include something like it in the test case.

Thanks,

Scott


roshan joseph wrote:
Hi,
Could someone let me know whether the distributed eventadmin service support filters? I was trying to add a filter condition to the eventhandler code in the properties object, but the event handler is found no response to the filter. In the testeventhandler code I have added another line like
dictionary.put(EventConstants.EVENT_FILTER,"(topic=defaultTopic)");
before registering the eventhandler. Events with different topic names are also processed by the handler. Really appreciate all help in advance. Thanks & Regards,
Roshan

------------------------------------------------------------------------

_______________________________________________
ecf-dev mailing list
ecf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ecf-dev



Back to the top