The DOSGi way would be to use the discovery mechanism to let the client
find the service.
So if your application also runs OSGi you can simply deploy DOSGi and
the zookeeper discovery to both client and server.
Then you only need to reference the service you want using a OSGi
ServiceTracker on the client and the discovery will provide you a proxy
to the service on the service.
If your client is not running OSGi then you might be able to use CXF jmx
features to find the available endpoints.
Btw. you might also want to investigate using Apache Karaf on the server
side. It allows simpler installation of CXF and DOSGi and it already has
some kind of bundle manager that is available over jmx.
Christian
Am 16.01.2013 04:23, schrieb Dhiego Abrantes de Oliveira Martins:
Hi all,
I'm implementing a bundle manager over iPOJO and CXF DOSGi. I have a osgi
container (felix) with some bundles (dosgi/webservices) deployed.
I need to provide (or return) a bundle service reference/endpoint to
'application client'. The 'application client' will consume the dosgi
(webservice) through service reference/endpoint returned, and use it,
invoking yours methods.
For example: I have a bundle deployed as 'serviceOne'. It's a webservice
deployed by iPOJO and CXF DOSGi and running in
http://localhost:9090/serviceOne. So, I need return the address of
'serviceOne'.
I try access BundleContext, but was unsuccessful.
Best regards!
[]'s
Dhiego
--
Christian Schneider
http://www.liquid-reality.de
Open Source Architect
Talend Application Integration Division http://www.talend.com