...
Besides creating the service instance, the activator sets the additional properties on the service that are required to make it available remotely:
- The
osgiservice.remoteexported.interfaces
property is set to*
, which means that all the interfaces passes to registerService should be made accessible remotely. In this case it's just theGreeterService
interface. - The
osgiservice.remoteexported.configuration.typeconfigs
is set topojo
org.apache.cxf.ws
, which is a CXF specific configuration type that can be used to set the URL at which expose the OSGi Service as a Web Service over SOAP/HTTP. The address of the service is to be exposed. This is done specified via theosgiorg.remoteapache.configurationcxf.pojows.address
property.
Let's run the server in Felix 1.8.0. As a prerequisite it requires some of the OSGi Compendium Specification interfaces. These don't come with the Felix download, but you can install a bundle that contains these interfaces straight from the Felix download area.
In this walkthrough I'm using the single-bundle distribution of CXF/DOSGi which can be installed straight from the Maven release repository.
...