[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] Debugging zookeeper service dsicovery

Hi Bryan,

In addition to breakpoints, it might be useful to use these listeners:

(on host side)
org.eclipse.ecf.osgi.services.discovery.IHostDiscoveryListener
org.eclipse.ecf.osgi.services.distribution.IHostDistributionListener

(on consumer side)
org.eclipse.ecf.osgi.services.discovery.IProxyDiscoveryListener
org.eclipse.ecf.osgi.services.distribution.IProxyDistributionListener

Each of these use the OSGi whiteboard pattern...i.e. create an implementer of these interfaces and register them as OSGi services.  Then when things happen in the discovery and/or distribution implementations, the appropriate methods are called back.

Examples of usage exist in the hello examples projects (i.e. in org.eclipse.ecf.examples.remoteservices.hello.host and org.eclipse.ecf.examples.remoteservices.hello.consumer)...i.e. in the HelloHostApplication and HelloConsumerApplication.

Scott

On 10/4/2010 10:07 AM, Bryan Hunt wrote:
Wim,

I need to start debugging the problem where a remote service is discovered by zookeeper, but no proxy is created when I run multiple servers on the same machine exporting the same service.  Where should I be setting breakpoints to track down this problem?

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