It is quite easy to provide an endpoint to an external service.
The config based discovery can take care of this:

See:
https://github.com/apache/aries-rsa/tree/master/discovery/config

In the readme there is an example for how to configure a non OSGi remote
REST endpoint.

Christian

2018-03-09 12:58 GMT+01:00 Michael Wirth via osgi-dev <
osgi-dev@mail.osgi.org>:

> 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
>



-- 
-- 
Christian Schneider
http://www.liquid-reality.de

Computer Scientist
http://www.adobe.com
_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to