|
OsgiInPractice_Chapter1
PrerequisitesPlease download and read the first chapter of the free ebook "Osgi in practice" (1). The direct download link is (2) You need also to install the bnd plugin (3). Simply download the stable jar version in the plugins/ folder of your eclipse installation, and then restart it. Get the code of chapter 1to get the code, type svn co http://osgitutorials.googlecode.com/svn/oip_ch1/trunk Note: you need to read the first chapter of Osgi in Practice (2) to understand how to use the code Three bundles are included:
The code of the three bundles is actually mixed, but they're built using a different .bnd file (respectively helloworld.bnd, bundlecounter.bnd and bundledeployer.bnd) To build yourself a bundle (using the Bnd eclipse plugin), simply right click on a .bnd file and choose "Make Bundle" the Bundle Deployer bundleThe Bundle Deployer bundle is a possible solution for the exercises proposed at the end of the chapter. This bundle monitor the bundle/ folder contents and when finds a new bundle, deploy it when a jar is deleted from the directory, uninstall the correspondend bundle when a jar is updated in the directory, update the correspondent bundle References(1) http://neilbartlett.name/blog/osgibook/ (2) http://neilbartlett.name/downloads/preview_first_steps.pdf |
Sign in to add a comment