Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: for the plan.

Jump to: navigation, search

R-OSGi Properties

Currently, R-OSGi supports the following properties:

Attribute Default Comment



= disabled

Enable debug output for dynamic proxy generation.



= disabled

Enable debug output for R-OSGi messages (= network packets).



= disabled

Enable R-OSGi internal debug outputs.



Amout of time (in seconds) between two SLP service discovery attempts (only when jSLP and service_discovery.slp are installed). This also sets the upper time bound for discovery.



Amout of time (in seconds) that a service registration in SLP remains alive. R-OSGi will reregister the service unless the service is unregistered with R-OSGi. This property sets the lifetime for SLP registrations and affects how long a registration remains stale if the R-OSGi service is shut down or if a SLP Directory Agent is used and the framework is shut down. Should be set to a reasonable value; too small values lead to increased resource consumptions for the reregistration thread. Too large values lead to stale service references, especially if a Directory Agent for is present. (For details about the role of a Directory Agent, see <a class="externalLink" href=""> RFC 2608 </a>

. Please note, that service_discovery.slp does not require the presence of a Directory Agent.)

ch.ethz.iks.r_osgi.port 9278

The port on which R-OSGi operates when the (default) TCP-based protocol is used. Should not be changed unless R-OSGi is running in a closed environment where all peers use a non-default port.



Defines if R-OSGi should register the default transport channel support for the r-osgi protocol.



Defines timeout used (ms) for ChannelEndpointImpl.TIMEOUT variable used in ChannelEndpointImpl.sendAndWait() method.



Defines timeout (ms) used for remote service method calls. May be overridden on a service-specific basis by using osgi.basic.timeout service property.



Whether to use the value of InetAddress.getLocalHost().getCanonicalHostName() as the default host value for dynamically created r_osgi provider ID. If false, then 'localhost' is used as default. Setting this to false can be useful if your network configuration results in getCanonicalHostName() taking a very long time to complete (> 10 seconds), due to absent or misconfigured nameserver.

ch.ethz.iks.r_osgi.topic.filter empty By default, the ROSGi provider will attempt to distribute local Events, delivered via the OSGi EventAdmin service. There are many events that are not serializable, however, (especially in Eclipse/RCP applications) and when ROSGi attempts to serialize these exceptions will be thrown and other communication may be interrupted. With this topic.filter property, individual topic names may be prevented from being distributed. For example:

will prevent any events from being distributed.


will prevent events that begin with org/eclipse/e4/* and org/osgi/* from being distributed automatically. See also <a href="">bug 419327</a> for more information.

Back to the top