Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

/auction

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.

Service Consumer properties

On the client side proxy, typically the same properties are set as on set service provider side. There are some additional properties too. Since the client-side proxy is registered by the DOSGi implementation, all these properties are read-only.

Property Name

Data Type

Example

Description

osgi.remote

boolean

true

This property is always set on a service proxy, indicating that the real service is remote.

org.apache.cxf.remote.dsw.client

String

 

This property is set to the bundle name of the CXF-DOSGi implementation and can be used to find client side proxies created by the CXF DOSGi implementation.

The Intent Map

remote-services.xml files