Difference between revisions of "How to add OSGI Bundles"

From RifidiWiki

Jump to: navigation, search
Line 1: Line 1:
* 1) Add Osgi bundle .jar to server/plugins (not included out of teh box with RIFIDI Edge)
+
* 1). For the bundle you want to export, go to META-INF/Manifest.mf in eclipse
* 2) update bundles.info in server/configuration/org.eclipse.equinox.simpleconfigurator
+
* 2)Press "Export Wizard". Select a directory to export to. If you wish, you can select multiple bundles to export at this time. Default options should work fine for the rest.
 +
* 3)Press "Finish". Jars for all bundles selected should end up in the folder you chose.
 +
* 4)Transfer the jars to the "plugins" folder in a rifidi install. Replace any jars with the same name. There is a file called "bundles.info" in "configuration/org.eclipse.equinox.simpleconfigurator". If you added any new jars, or incremented the version of any existing jars, you'll need to update this file to reflect
 +
* 5) update bundles.info in server/configuration/org.eclipse.equinox.simpleconfigurator
  
 
example bundles.info entry
 
example bundles.info entry
  
 
oracle.jdbc.driver,1.0.0,plugins/oracle.jdbc.driver_1.0.0.jar,4,true
 
oracle.jdbc.driver,1.0.0,plugins/oracle.jdbc.driver_1.0.0.jar,4,true
* 3) Once RIFIDI Edge starts at OSGI prompt type ss to verify bundle is ACTIVE
+
* 6) Once RIFIDI Edge starts at OSGI prompt type ss to verify bundle is ACTIVE
  
 
Note: OSGI Bundles include in the Spring Framework can be found here - http://ebr.springsource.com/repository/app/
 
Note: OSGI Bundles include in the Spring Framework can be found here - http://ebr.springsource.com/repository/app/

Revision as of 17:26, 15 May 2014

  • 1). For the bundle you want to export, go to META-INF/Manifest.mf in eclipse
  • 2)Press "Export Wizard". Select a directory to export to. If you wish, you can select multiple bundles to export at this time. Default options should work fine for the rest.
  • 3)Press "Finish". Jars for all bundles selected should end up in the folder you chose.
  • 4)Transfer the jars to the "plugins" folder in a rifidi install. Replace any jars with the same name. There is a file called "bundles.info" in "configuration/org.eclipse.equinox.simpleconfigurator". If you added any new jars, or incremented the version of any existing jars, you'll need to update this file to reflect
  • 5) update bundles.info in server/configuration/org.eclipse.equinox.simpleconfigurator

example bundles.info entry

oracle.jdbc.driver,1.0.0,plugins/oracle.jdbc.driver_1.0.0.jar,4,true

  • 6) Once RIFIDI Edge starts at OSGI prompt type ss to verify bundle is ACTIVE

Note: OSGI Bundles include in the Spring Framework can be found here - http://ebr.springsource.com/repository/app/

Personal tools