Wiki Markup |
---|
{scrollbar} |
Excerpt |
---|
Geronimo comes with both provides two OSGi frameworks: Eclipse Equinox and Apache Felix pre-installed. You can easily switch the OSGi runtime between themconfigure which OSGi framework is used at runtime by updating the |
Prerequisites
Make sure that Equinox bundle is already in the server repository. Generally it is located in a directory named repository/org/eclipse/osgi/3.5.1.v20090827/osgi-3.5.1.v20090827.jar
under Geronimo_Home directory. Otherwise, you must install the bundle first. See Apache Felix on how to install a bundle in Felix.
Steps
...
The following example show how to configure Geronimo to use Felix as its OSGi framework.
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 the framework.
- Open
config.properties
file under Geronimo_Home/etc
directory, which is the initial configuration parameters to start up a Karaf framework. - Uncomment Comment out the line with * karaf.framework=felixequinox and comment out uncomment the line with karaf.framework=equinoxfelix.
- Specify the location of Equinox Felix bundle using the key karaf.framework.equinoxfelix. The following code snippet is the an updated ((
config.
properteis))properties
file.Code Block java java title config.properties ... # # Framework selection properties # # karaf#karaf.framework=felixequinox karaf.framework=equinoxfelix karaf.framework.equinoxfelix=repository/org/eclipse/osgi/3.5.1.v20090827/osgi-3.5.1.v20090827apache/felix/org.apache.felix.framework/3.0.2/org.apache.felix.framework-3.0.2.jar ...
Save the file and restart the server
...
See Apache karaf for more information about those key=value pairs in the config.properties
file.