|Re: [ecf-dev] Remote OSGi services|
Eugen,I am busy with final prep for Ganymede so can't spend a lot of time with this now. Other committers (e.g. Markus), please jump in and help Eugen further.
Discovery is a way/can be used to find remote OSGI services...we have example code that does this in these three projects:
org.eclipse.ecf.examples.remoteservices.common org.eclipse.ecf.examples.remoteservices..server org.eclipse.ecf.examples.remoteservices..client http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.ecf/examples/plugins/?root=Technology_Project These are all located in /cvsroot/technology/org.eclipse/ecf/examples/pluginsYou can see the registration via discovery and as a remote service in this server class:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.ecf/examples/plugins/org.eclipse.ecf.examples.remoteservices.server/src/org/eclipse/ecf/internal/examples/remoteservices/server/DiscoverableServer.java?root=Technology_Project&view=logAnd the client is created by defining a 'serviceAccessHandler' extension. This is an extension declaration from the client's plugin.xml
<extension point="org.eclipse.ecf.discovery.ui.serviceAccessHandler"> <serviceAccessHandler class="org.eclipse.ecf.internal.examples.remoteservices.client.RemoteEnvironmentInfoServiceAccessHandler"> </serviceAccessHandler> </extension> We have been discussing/are discussing with the p2 folks how to create p2 meta-data and artifact repositories that can be discovered via the ECF discovery API (with either provider...zeroconf/jmdns and/or jSLP)...so it makes perfect sense to create/add publish via discovery other management interfaces (like the ones that you have been working on Eugen). Scott Eugen Reiswich wrote:
Hi all,I need some help regarding ECF remote OSGi services and hope that someone is able to help me. The scenario is quite simple. I have some clients connected to a server (in my case XMPP server). If a new client connects to a server he is supposed to perform remote OSGi services on the already connected clients. But this is not possible as the remote OSGi service registration happens at the connection time.Now I've found the ECF discovery service (http://wiki.eclipse.org/Discovery_of_Remote_Services) and wonder if this might be the right approach for me. Although I tried to get familiar with the code I didn't get the important steps.Could please anybody tell me if the discovery service is the right approach in order to find dynamically remote services. And if possible post some code snippet of the important stepts to do (client and server side).That would be really great! Regards, Eugen _______________________________________________ ecf-dev mailing list ecf-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/ecf-dev
Back to the top