[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] Do not work Discovery and Distribution Listeners

Hi Pavel,

Samolisov Pavel wrote:
Hello, All.

I have read this article:
http://wiki.eclipse.org/Discovery_and_Distribution_Listeners and try
IHostDistributionListener and IHostDiscoveryListener services, but I do
not understand how they work? I created new bundle and registered these
services but they are not called.

These are only called on the host (not the consumer). Conversely, the IProxy* listeners should/are only called on the consumer and not the host.

There is successful test code that uses these listeners in

test class: org.eclipse.ecf.tests.osgi.services.distribution.generic.GenericServiceRegisterListenerTest
CVS module: org.eclipse.ecf/tests/bundles/org.eclipse.ecf.tests.osgi.services.distribution

Do I right understand, what IHost*Listeners must be registered on
Consumer JVM?

No, host listeners are registered with the host vm, proxy listeners are registered with the consumer vm.

May be this stuff for
only and shouldn't work with ECF's RFC 119 Example?

No, it's specifically for the RFC119 remote services.