Use wsadmin commands to list, remove, add, modify, or show
details for links to external bundle repositories.
About this task
The external bundle repositories are bundle repositories that are available outside of WebSphere Application Server. If your OSGi applications reference bundles that are stored in an external bundle repository, you must 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.
Procedure
- List all links to external bundle repositories.
Use
the
listExternalBundleRepositories command. For
example:
AdminTask.listExternalBundleRepositories()
For
more information, see listExternalBundleRepositories command.
Note: The list includes any repository links that you have added since you last saved your changes, and excludes any repository links that you have removed since you last saved your changes.
- Show the configured parameters of an external bundle repository.
Use the
showExternalBundleRepository command.
For example:
AdminTask.showExternalBundleRepository('-name bundle_repository_name')
For
more information, see showExternalBundleRepository command.
- Remove a link to an external bundle repository.
Use
the
removeExternalBundleRepository command. For
example:
AdminTask.removeExternalBundleRepository('-name bundle_repository_name')
For
more information, see removeExternalBundleRepository command.
- Add a link to an external bundle repository.
Use
the
addExternalBundleRepository command. For example:
AdminTask.addExternalBundleRepository('-name bundle_repository_name
-url bundle_repository_URL
[-description bundle_repository_description]')
Square brackets ("[ ]") indicate that a parameter is optional.
For more information,
see addExternalBundleRepository command.
- Modify a link to an external bundle repository.
Use
the
modifyExternalBundleRepository command. For
example:
AdminTask.modifyExternalBundleRepository('-name bundle_repository_name
[-url bundle_repository_URL]
[-description bundle_repository_description]')
Square brackets ("[ ]") indicate that a parameter is optional.
For more information,
see modifyExternalBundleRepository command.
What to do next
If you add, modify, or remove a link to an external bundle
repository, save your changes to the master configuration.
If you
add or modify a link to an external bundle repository, you must save
the changes before you can install an enterprise bundle archive (EBA)
file that depends on a bundle in that repository.