r-osgi, File-based discovery [message #625141] |
Mon, 08 March 2010 12:19 |
No real name Messages: 6 Registered: March 2010 |
Junior Member |
|
|
Hello,
I am trying to run a file-based discovery with the r-OSGI provider.
I am utilizing the org.eclipse.ecf.examples.remoteservices.hello.consumer
and
org.eclipse.ecf.examples.remoteservices.hello.host
examples.
Everything is running just fine with one host and one consumer.
However when I start an additional host (on a separate machine) the consumer discovers only one of them.
My OSGI-INF/remote-service/hello-service-description-generic.xm l file is:
<?xml version="1.0" encoding="UTF-8"?>
<service-descriptions xmlns="http://www.osgi.org/xmlns/sd/v1.0.0">
<service-description>
<provide interface="org.eclipse.ecf.examples.remoteservices.hello.IHello "/>
<property name="ecf.sp.cid">r-osgi://localhost:9279</property>
<property name="ecf.sp.cns">ecf.namespace.r_osgi</property>
<property name="ecf.sp.ect">ecf.r_osgi.peer</property>
</service-description>
<service-description>
<provide interface="org.eclipse.ecf.examples.remoteservices.hello.IHello "/>
<property name="ecf.sp.cid">r-osgi://192.168.1.242:9279</property>
<property name="ecf.sp.cns">ecf.namespace.r_osgi</property>
<property name="ecf.sp.ect">ecf.r_osgi.peer</property>
</service-description>
</service-descriptions>
In fact, only the first <service-description> entry is discovered.
Is this the right way to have more than one provider for a given service?
Thanks in advance.
Regards,
Rado
|
|
|
Powered by
FUDForum. Page generated in 0.02713 seconds