Use wsadmin commands to list, remove, add, or show further
details for bundles or composite bundles that are held
in the bundle repository that is included in the product.
About this task
WebSphere® Application Server includes an internal bundle repository, in which you can store the bundles and composite bundles for your OSGi applications. The internal bundle repository can store bundles that are referenced by OSGi applications running in WebSphere Application Server. 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. You can list, remove, add, or show further details for bundles or composite bundles in the internal bundle repository.
Procedure
- List all bundles that are held in the internal bundle repository.
Use the
listLocalRepositoryBundles command.
For example:
AdminTask.listLocalRepositoryBundles()
For
more information, see listLocalRepositoryBundles command.
Note: The list includes any bundles that you have added since you last saved your changes, and excludes any bundles that you have removed since you last saved your changes.
- Remove a bundle or composite bundle from the internal bundle repository.
Use the
removeLocalRepositoryBundle command.
For example:
AdminTask.removeLocalRepositoryBundle('-symbolicName bundle_symbolic_name
-version bundle_version')
For
more information, see removeLocalRepositoryBundle command.
- Add a bundle or composite bundle to the internal bundle repository.
Use the
addLocalRepositoryBundle command.
For example:
AdminTask.addLocalRepositoryBundle('-file path')
The bundle must be packaged as a JAR file that is available on the server file system and that contains a suitably-configured manifest file. The composite bundle must be packaged as a compressed archive file with a .cba file extension.
For more
information, see addLocalRepositoryBundle command.
- Show further details (for example, imported packages, exported
packages, and required bundles) for a bundle in the internal bundle
repository.
Use the
showLocalRepositoryBundle command.
For example:
AdminTask.showLocalRepositoryBundle('-symbolicName bundle_symbolic_name
-version bundle_version')
For
more information, see showLocalRepositoryBundle command.
What to do next
If you add a bundle or composite bundle to the internal bundle repository,
or remove a bundle or composite bundle from the internal bundle repository, save
your changes to the master configuration.
If you add a new bundle
or composite bundle to the repository, you must save the changes before you can
install an enterprise bundle archive (EBA) that depends on that bundle
or composite bundle.