At https://github.com/apache/cxf-dosgi/tree/master/samples/rest there is a great examples how to call a REST service from a OSGi-Client with Apache CXF and dosgi. On client site a proxy is created from the resource class and bound as an OSGi service. The address for the server side is hard-coded in the file remote-services.xml. This is not a perfect solution if a product is build and delivered to many customers because this adress is different on each installation and for the customer it is not possible to edit a file inside a jar-file. If the server side is also implemented in OSGi then for example a Discovery Service and zookeeper can be used to find each other. Now the problem comes if the server is not implemented in OSGi (or there is no chance to change the server). How can this address be configured on client site? (best case with Felix Fileinstall) Or is it necessary to implement and register an own local Endpoint description?
Best regards, Michael _______________________________________________ OSGi Developer Mail List osgi-dev@mail.osgi.org https://mail.osgi.org/mailman/listinfo/osgi-dev