Moving bundles from an OSGi application to a bundle repository

You can move bundles that are contained in an OSGi application to a bundle repository. That is, you change an EBA file that contains bundles directly so that it references the bundles and provisions them from a repository.

About this task

You might move bundles from an OSGi application to a bundle repository for common and versioned bundles so that such bundles can be shared between multiple applications, and each application does not deploy its own copy of each common library.

The following procedure summarizes how to move a bundle from an EBA file to the internal bundle repository.

Procedure

  1. Use your preferred development tool to remove the bundle that you require (a JAR file) from the EBA file. See Developing and deploying an OSGi application.
  2. Ensure that the EBA file has an application manifest and that the bundle is listed in the Application-Content header of the application manifest. See Enterprise bundle archives.
  3. Upload the bundle that you removed into the internal bundle repository. See Updating bundle versions in the current environment.
  4. Import the EBA file as an asset. See Deploying an OSGi application as a business-level application.
  5. Wait for the download and provisioning to complete.
  6. Add the EBA asset to a business level application.

Icon that indicates the topic type Task topic

Terms and conditions for information centers | Feedback


Timestamp icon Last updated: Saturday, 20 October 2012
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=v700osgijpa&product=was-nd-mp&topic=ta_move_bundle

Copyright IBM Corporation 2009, 2012.
This information center is powered by Eclipse technology. (http://www.eclipse.org)