Skip to content

aclemons/osgi-launcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

This project's goal is to create a simple, reuseable OSGi launcher. It should be useable as a standalone runtime or to launch an embedded runtime inside a WAR file.

The source code for this project was originally forked from the 'main' subproject of the Apache Felix SVN repository at revision 1740200.

The initial idea came from FELIX-3195 which has still not been submitted upstream.

The launcher should be able to start an osgi runtime with felix, knopflerfish, or equinox.

Configuration

The following configuration properties are for the launcher:

  • caffe.auto.deploy.dir - Specifies the auto-deploy directory from which bundles are automatically deployed at framework startup. The default is the bundle/ directory of the current directory.
  • caffe.auto.deploy.dir. - Specifies the auto-deploy directory from which bundles are automatically deployed at framework startup, where is the start level into which the bundle will be installed (e.g., caffe.auto.deploy.dir.2)
  • caffe.auto.deploy.action - Specifies a comma-delimited list of actions to be performed on bundle JAR files found in the auto-deploy directories. The possible actions are install, update, start, and uninstall. An undefined or blank value is equivalent to disabling auto-deploy processing; there is no default value, so this value must be defined to enable it.
  • caffe.auto.deploy.startlevel - Specifies the start level into which the auto-deploy bundles will be installed.
  • caffe.shutdown.hook - Specifies whether the launcher should install a shutdown hook to cleanly shutdown the framework on process exit. The default value is true.
  • caffe.auto.install. - Space-delimited list of bundle URLs to automatically install when Felix is started, where is the start level into which the bundle will be installed (e.g., caffe.auto.install.2).
  • caffe.auto.start. - Space-delimited list of bundle URLs to automatically install and start when Felix is started, where is the start level into which the bundle will be installed (e.g., caffe.auto.start.2).

For configuration your framework, consult its documentation.

For felix, the documentation can be found here. For knopflerish, the documentation can be found here. For equinox, the documentation can be found here.

WAR Deployments

The launcher does not require the servlet container to unpack the war file. Other components in your runtime may make this assumption, but it is not required for the launcher code.

Usage

Dependencies

Example projects

WIP

Some example projects are here.

About

Flexible OSGi launcher

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages