Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{scrollbar}

{

Excerpt

...

Geronimo

...

uses

...

Karaf

...

as

...

the

...

OSGi

...

framework

...

and

...

comes

...

with

...

both

...

Equinox

...

and

...

Felix

...

pre-installed

...

as

...

runtime.

...

You

...

can

...

easily

...

configure

...

the

...

OSGi

...

environment

...

by

...

updating

...

.properties

...

files

...

under

...

/etc

...

directory.

...

By

...

default,

...

Geronimo

...

server

...

uses

...

Equinox

...

as

...

its

...

default

...

OSGi

...

runtime.

...

The

...

following

...

is

...

a

...

list

...

of

...

simple

...

tasks

...

for

...

your

...

demonstration.

...

...

...

...

Changing the OSGi runtime

The config.properties file is the system properties file of underlying OSGi framework of Geronimo, in which stores the initial configuration parameters to start up a Karaf framework.

  1. Open config.properties file under /etc directory.
  2. Uncomment the line with karaf.framework=equinox and comment out the line with karaf.framework=felix.
  3. Specify the location of Flex bundle using the key karaf.framework.felix. The following code snippet is an updated config.properteis file.
    Code Block
    java
    java
    titleconfig.properties
    
    ...
    #
    # Framework selection properties
    #
    #   karaf.framework=equinox
        karaf.framework=felix
    
    karaf.framework.felix=repository/org/apache/felix/org.apache.felix.framework/3.0.2/org.apache.felix.framework-3.0.2.jar
    ...
    

...

  1. Save the file and restart the server.

See Apache karaf for more information about those key=value pairs in the config.properties file.

Enabling OSGi framework debugging

The equinox-debug.properties

...

is

...

used

...

to

...

configure

...

debug

...

options

...

for

...

Equinox

...

runtime.

...

To

...

enable

...

debug

...

for

...

the

...

Equinox

...

runtime.

...

  1. Open config.properties

...

  1. file

...

  1. under

...

  1. /etc

...

  1. directory.

...

  1. Comment

...

  1. out

...

  1. the

...

  1. line

...

  1. with

...

  1. osgi.debug=${karaf.home}/etc/equinox-debug.properties

...

  1. .

...

  1. Update

...

  1. value

...

  1. of

...

  1. each

...

  1. parameter

...

  1. in

...

  1. the

...

  1. equinox-debug.properties

...

  1. file

...

  1. as

...

  1. needed.

...

  1. The

...

  1. following

...

  1. code

...

  1. snippet

...

  1. is

...

  1. an

...

  1. updated

...

  1. config.properteis

...

  1. file.

...

  1. Code Block
    java
    java
    titleconfig.properties

...

  1. 
    ...
    #
    # Debug options for Equinox
    #
     osgi.debug=${karaf.home}/etc/equinox-debug.properties
    ...
    

...

  1. Save the file and restart the server.