Network Deployment (Distributed operating systems), v8.0 > Administer applications and their environment > Administer OSGi applications
Administer bundle repositories
OSGi applications can share a large number of common utility bundles.
To simplify maintenance, and reduce the application footprint, the application does not need to include its own copy of each utility bundle. Instead, bundles can be hosted in a bundle repository, from where they are retrieved during deployment. We can administer bundles and composite bundles held in the internal bundle repository of the product, and also add links to external bundle repositories.
About this task
WAS includes an internal bundle repository, in which you can store the bundles and composite bundles for your OSGi applications. The external bundle repositories are bundle repositories that are available outside of WAS. If your OSGi applications reference bundles that are stored in an external bundle repository, configure a link (name and URL) to the repository so that the provisioner can retrieve the bundles when required. When an OSGi application is imported as an asset, the provisioner attempts to satisfy all its dependencies by using the contents of the asset, the contents of the internal bundle repository, and the contents of any available external bundle repositories.
We can link to any external bundle repository that complies with the OSGi Alliance RFC-0112 Bundle Repository Draft Specification. Such a repository consists of a website with a bundle repository XML file that describes an OSGi-compliant repository. Depending on how the external bundle repository is implemented, you might not be able to use it to provision services, or to store composite bundles or bundles referenced by composite bundles.
If your bundle includes Blueprint XML files that specify service or reference elements, and the bundle is included in a EBA asset or installed in the internal bundle repository, then these elements are respected during provisioning and appropriate services are provisioned when needed. See Provisioning for OSGi applications.
Subtopics
- Move bundles from an OSGi application to a bundle repository
We can change the configuration of an enterprise OSGi application so that bundles and composite bundles that were directly contained in the enterprise bundle archive (EBA) file are instead pulled in by reference and provisioned from a repository.- Administer bundles in the internal bundle repository
Use the administrative console to list, delete, add, or show further details for bundles and composite bundles that are held in the bundle repository that is included in the product.- Administer links to external bundle repositories
Use the administrative console to list, delete, add, modify, or show details for links to external bundle repositories.- Interacting with the OSGi bundle cache
The bundle cache is a cell-wide store (or server-wide for single-server systems) of bundles that are referenced by OSGi applications, and that have been downloaded from both internal and external repositories. We can interact with the bundle cache using either the administrative console, or the methods of the OSGi BundleCacheManager MBean.
Parent topic: Administer OSGi Applications
Related concepts:
About OSGi Applications
OSGi bundles and bundle archivesRelated tasks:
Update bundle versions for an EBA asset
Maintain an OSGi composition unit
Check the bundle download status of an EBA asset
Check the update status of an OSGi composition unit
Export and importing a deployment manifest file
Secure OSGi ApplicationsRelated reference:
OSGi Alliance RFC-0112 Bundle Repository Draft Specification
OSGi Applications: Troubleshooting tips
Task topic Feedback
Copyright IBM Corporation 2009, 2011. All Rights Reserved.
This information center is powered by Eclipse technology.