|
|
|
Re: EDEF xml Multiple endpoint problem [message #663102 is a reply to message #663078] |
Sun, 03 April 2011 16:30 |
Ajay Messages: 3 Registered: March 2011 |
Junior Member |
|
|
Markus Alexander Kuppe wrote on Sun, 03 April 2011 06:08 | On 04/01/2011 01:51 AM, Ajay wrote:
> The example works fine, but when I try to add multiple
> endpoint-description blocks in the same file, ecf only recognizes the
> first one. It looks like it may be a problem with the xml parser.
Please open a bug report at https://bugs.eclipse.org
> Multiple services worked great with zeroconf/ecf-generic, but I've had
> these problems using edef/ecf-generic.
May I ask why you want to use file based discovery when Zeroconf works
for you?
Markus
|
I've opened bug 341719.
Zeroconf only works in our development environment. For our production environment, we will have two JVMs running on a single ubuntu machine, and it may not have any external network interfaces (only loopback). In this situation, Zeroconf does not seem to work.
For now, I've come up with a (slightly involved) workaround:
On the server side, a RemoteServiceAdminListener stores all services that have been exported. A single ServerInfo service is used to share a list of class/endpoint.service.id pairs with the client.
The client uses edef to 'discover' the ServerInfo service and uses it to retrieve info about the other services exported on the server side. The client then has enough information to create EndpointDescription objects for each of the remote services and imports them with the RemoteServiceAdmin
|
|
|
|
Powered by
FUDForum. Page generated in 0.04277 seconds