Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Apache Felix Gogo is a subproject of Apache Felix aiming at implementing the OSGi RFC-147.
The code has been donated by Peter Kriens and further developed by the Felix team.The RFC - 147 draft is not yet publicly available. It used to be called RFC-132, which can be found about 40% into http://www.osgi.org/download/osgi-4.2-early-draft.pdfImage Removed

Configuring Felix to use Gogo

, which describes a standard shell for OSGi-based environments. See RFC 147 Overview for more information.

Using Gogo with the Felix Framework

The Gogo subproject consists of three Gogo consists of two main bundles:

  1. runtime - this implements the RFC-147 Command service and shell interpretercore command processing functionality.console
  2. shell - this is provides a simple tty console that reads terminal input and submits it to the RFC-147 Command service.

This is similar to the relationship between the existing Felix Shell and Shell TUI bundles.

  1. textual user interface to interact with the command processor.
  2. command - implements a set of basic commands.

As of the Apache Felix Framework 3.0.0, Gogo is included as the default shell in the framework distribution. To use it, you just start the framework like normalTo use Gogo, remove the Shell TUI bundle and add the Gogo runtime and console bundles to the bundle directory of the binary Felix distribution. Leave the existing Felix Shell bundle, as Gogo can execute existing Felix commands as well as new RFC-147 commands:

No Format
$ cd felix-framework-2.0.1
$ ls bundle
org.apache.felix.bundlerepository-1.4.2.jar
org.apache.felix.gogo.console-0.2.2.jar
org.apache.felix.gogo.runtime-0.2.2.jar
org.apache.felix.shell-1.4.1.jar

3.0.0
$ java -jar bin/felix.jar 

_______________
Welcome to Apache Felix
================

$ ps Gogo

g! lb
START LEVEL 1
   ID   |State         Level  |Level|Name
[    0] [|Active     ] [|    0] |System Bundle (23.0.10)
[    1] [|Active     ]| [    1] |Apache Felix Bundle Repository (1.46.2)
[    2] [|Active     ]| [    1] |Apache Felix Gogo ShellCommand Console (0.26.20)
[    3] [|Active     ] [|    1] |Apache Felix Gogo Shell Runtime (0.26.20)
[    4] [|Active     ] [|    1] |Apache Felix Gogo Shell Service (10.46.10)
g! 

Gogo shell integration in the framework distribution is also discussed in the framework usage document