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. 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 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. You can also view and refresh the repository URL for the repository that hosts the bundle.
The methods for the OSGi BundleCacheManager MBean interface are documented in the Additional Application Programming Interfaces (APIs) section of the generated API documentation.
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: