Jump to content

Apache Felix

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 2.90.145.231 (talk) at 17:29, 31 March 2011. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Apache Felix
Developer(s)Apache Software Foundation
Stable release
3.0.9 / February 25, 2011 (2011-02-25)
Repository
Written inJava
Operating systemCross-platform
Size750 KB (archived)
TypeOSGi Service Platform
LicenseApache 2.0 Licence
Websitehttp://felix.apache.org/

Apache Felix is an open source implementation of the OSGi Release 4 core framework specification.[1] The initial codebase was donated from the Oscar project at ObjectWeb.[2] The developers have worked on Felix for a full year and have made various improvements while retaining footprint and performance. On June 21, 2007, the project graduated from incubation as top level project and considered the smallest size software at Apache Software Foundation.

Running Felix

To run Apache Felix OSGi you need to download the felix-framework-x.x.x.tar.gz or felix-framework-x.x.x.zip compressed file from the site.[3] Once you have extracted the Felix framework distribution, from the command line in the extracted directory type the following:

java -jar bin/felix.jar

After that, bundles are installed running and typing command like help from the console will display all available commands, which are:

bundlelevel <level> <id> ... | <id> - set or get bundle start level.
cd [<base-URL>]                     - change or display base URL.
find <bundle-name>                  - display bundles matching substring.
headers [<id> ...]                  - display bundle header properties.
help                                - display impl commands.
inspect                             - inspect dependency information (e.g., packages, service, etc.).
install <URL> [<URL> ...]           - install bundle(s).
log [<max>] [error|warn|info|debug] - list recent log entries.
obr help                            - OSGi bundle repository.
ps [-l | -s | -u]                   - list installed bundles.
refresh [<id> ...]                  - refresh packages.
resolve [<id> ...]                  - attempt to resolve the specified bundles.
shutdown                            - shutdown framework.
start <id> [<id> <URL> ...]         - start bundle(s).
startlevel [<level>]                - get or set framework start level.
stop <id> [<id> ...]                - stop bundle(s).
sysprop [-r] [<key>] [<value>]      - Display, set, modify and remove system properties.
uninstall <id> [<id> ...]           - uninstall bundle(s).
update <id> [<URL>]                 - update bundle.
version                             - display version of framework.

Projects Using Felix

The projects list below highlights the adoption Apache Felix

See also

Further reading

  • Joseph Gédéon, Walid (November 5, 2010), OSGi and Apache Felix 3.0 Beginner's Guide (1st ed.), Packt Publishing, p. 336, ISBN 1849511381

References