Skip to content

Example projects to kick start OSGi framework for developing and deploying modular software programs and libraries.

License

Notifications You must be signed in to change notification settings

VishnuGurudathan/osgi-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OSGi Examples

A simple OSGi example,  illustrating OSGi core concepts for learning purposes.

OSGi bundle is generated with the help of Apache bundle plugin for Maven on the projects.

For further details, check their README files in their respective folders.

In order to try out the example, you should run mvn clean install for Maven projects and install the generated bundles onto an OSGi container like Apache Karaf, Eclipse equinox or  Knopflerfis.

The order in which the bundles will be generated matters! This is because the bundles are consumed by others as a dependency, Maven will store the bundle into the local repository after the Maven install command, the consumer bundle will resolve it. The generated bundles can be found in the target folder in each project.

Installation instructions

Reference guide to Apache Karaf

  • Download the OSGi container.
  • Run the karaf executable in the bin folder.
  • Install the Service Component Runtime with the feature:install scr command.
  • Install this bundle onto the container using install file://{PATH_TO_YOUR_BUNDLE}.
  • Check the Bundle IDs and run start {BUNDLE_ID} for the installed bundle. In case you can't find them, you can always check all of the installed bundles with the list command and get the IDs from there.

The order in which you install the provider and consumer bundle doesn't matter, what matters is the order in which it starts.

About

Example projects to kick start OSGi framework for developing and deploying modular software programs and libraries.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages