Network Deployment (Distributed operating systems), v8.0 > Administer applications and their environment > Administer OSGi applications > Administer 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.


About this task

We can get an up-to-date list of the bundles in the bundle cache, check if all bundles have been successfully downloaded, and request that one or more bundles be downloaded again. For a given bundle you can view the bundle size, the download status, and a list of the assets and composition units that use the bundle. We can also view and refresh the repository URL for the repository that hosts the bundle.

The main differences between interacting with the OSGi bundle cache by using the administrative console and by using the MBean interface are as follows:

The methods for the OSGi BundleCacheManager MBean interface are documented in the Additional Application Programming Interfaces (APIs) section of the generated API documentation.

You use the MBean methods with the AdminControl object of the wsadmin scripting client. For example:

objNameString = AdminControl.completeObjectName('WebSphere:type=BundleCacheManager,*')
print AdminControl.invoke(objNameString, 'areAllDownloadsComplete') 
For more information about using MBean methods with the AdminControl object, see the "invoke" and "invoke_jmx" sections of Commands for the AdminControl object using wsadmin scripting.

Some common tasks for which you might interact with the bundle cache are as follows:


Procedure

Parent topic: Administer bundle repositories

Related concepts:

About OSGi Applications

Related tasks:

Move bundles from an OSGi application to a bundle repository
Administer bundles in the internal bundle repository
Administer links to external bundle repositories
Secure OSGi Applications
Deploy an OSGi application as a business-level application

Related reference:

OSGi Applications: Troubleshooting tips

Related information:

Bundle cache [Collection]
Bundle cache [Settings]
Task topic Feedback
Copyright IBM Corporation 2009, 2011. All Rights Reserved.
This information center is powered by Eclipse technology.

+

Search Tips   |   Advanced Search