Configuration Properties
These properties are set on the Service Registration in the OSGi Service Registry.
Common properties
Service Provider properties
Property Name |
Data Type |
Example |
Description |
---|---|---|---|
osgi.remote.interfaces |
String |
|
Denotes the interfaces to be exposed remotely. This is a comma-separated list of fully qualified Java interfaces that should be made available remotely. A special value of |
osgi.remote.configuration.type |
String |
|
Specifies the mechanism for configuring the service exposure. Possible values:
|
pojo
configuration type
When the osgi.remote.configuration.type=pojo property is specified, the following properties may also be specified.
Property Name |
Data Type |
Example |
Description |
---|---|---|---|
osgi.remote.configuration.pojo.address |
String |
{{ http://localhost:9090/greeter}} |
The address at which the service with be made available remotely. If this property is not specified, this defaults to {{ http://localhost:9000/fully/qualified/ClassName}}. |
osgi.remote.configuration.pojo.httpservice.context |
String |
|
If this property is specified, the OSGi HTTP Service is used to expose the service, rather than a dedicated Jetty HTTP Server. This property doesn't allow the specification of a port number, as this is provided by the HTTP Service. Depending on the OSGi HTTP Service used, this is configured in its own way. The Distributed OSGi distributions come with Pax-Web, for which configuration information can be found here: http://wiki.ops4j.org/display/ops4j/Pax+Web+-+Configuration, however other OSGi HTTP Service implementations are potentially configured differently. |