+

Search Tips   |   Advanced Search

Interacting with the OSGi bundle cache

The bundle cache is a cell-wide store (or server-wide for single-server systems) of bundles referenced by OSGi applications, and that have been downloaded from both internal and external repositories. You can interact with the bundle cache using either the administrative console, or the methods of the OSGi BundleCacheManager MBean.

You can get an up-to-date list of the bundles in the bundle cache, check if all bundles are successfully downloaded, and request that one or more bundles be downloaded again. For a given bundle, we can view the bundle size, the download status, and a list of the assets and composition units that use the bundle. You 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 using the MBean interface are as follows:

The methods for the OSGi BundleCacheManager MBean interface are documented in the Additional APIs section of the generated API documentation.

Use 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:


Parent topic: Administer bundle repositories


Related tasks

  • Move bundles from an OSGi application to a bundle repository
  • Administer bundles in nternal bundle repository
  • Administer links to external bundle repositories
  • Deploy an OSGi application as a business-level application

  • OSGi applications: Troubleshooting tips


    Related information:

  • Bundle cache [Collection]
  • Bundle cache [Settings]