The main idea is that a servant can have access to the OSGi registry. Therefore, it can use standard and user-defined OSGi services. In the example below, the servant uses (implicitly) the standard ConfigAdmin service and the user-defined service IHello.
There is an IHello service and a client using this service. See diagrams.
Requirement.
Solution.
You need to install:
- OpenJDK
- Eclipse
- Bndtools I use The development snapshot
- slice2java compiler
- Ice builder for Eclipse
This git is bndtools workspace. Clone or download it. Create new Eclipse workspace, open bndtools perspective, import bndtools workspace from git. Now go to org.home.hello.run project. etc directory contains keystores and truststores for distributed server and client, load directory contains configurations for distributed server and client. *.bndrun files have self-describing names.
TODO.