Disabling R-OSGi

From Eclipsepedia

Revision as of 16:52, 2 June 2009 by Slewis.eclipsesource.com (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Sometimes, it's necessary or desirable to disable the automatic running of an R-OSGi instance and the attendant creation of a listener on R-OSGi's default port (9278).

  1. When attempting to run other R-OSGi instance(s) on the localhost (e.g. running the Getting_Started_with_ECF's_RFC119_Implementation).
  2. When running JUnit plugin tests
  3. When concerned about security (e.g. server scenarios).

To disable R-OSGi in a given instance, provide the following on the command line when starting (Eclipse or some other app that has ECF installed):

-Dch.ethz.iks.r_osgi.registerDefaultChannel=false

For example, for disabling R-OSGi in a running Eclipse instance:

eclipse.exe -vmargs -Dch.ethz.iks.r_osgi.registerDefaultChannel=false