Network Deployment (Distributed operating systems), v8.0 > Reference > Commands (wsadmin scripting) > OSGiApplicationCommands: OSGi Applications administrative commands


addLocalRepositoryBundle command

Use the addLocalRepositoryBundle command to add a bundle, composite bundle or grouped-up set of bundles to the internal bundle repository that is included in the product.

To run the command, use the AdminTask object of the wsadmin scripting client.

Command-line help is provided for OSGi Applications commands:

After using the command, save changes to the master configuration by using the following command:

AdminConfig.save()


Purpose

This command adds a bundle, a composite bundle or a grouped-up set of bundles to the internal bundle repository.

We can install bundles singly, or you can install a set of bundles packaged as a compressed archive file with a .zip file extension. In both cases, the bundles are available individually in the repository. If you install a composite bundle in a bundle repository, and the composite bundle includes bundles by reference, ensure that the referenced bundles are also available in the same repository. If you use the internal bundle repository, and the composite bundle directly contains bundles, the contained bundles are not listed separately and are only available as part of the composite bundle. For more information, see Composite bundles.


Target object

None



Required parameters

-file path

The path and file name of a compressed archive file that has a .jar, .cba or .zip file extension and is available on the server file system.

Each individual bundle must be packaged as a .jar file, and must contain a suitably-configured bundle manifest file. Each composite bundle must be packaged as a compressed archive file with a .cba file extension, and must contain a suitably-configured composite bundle manifest file. Each grouped-up set of bundles must be packaged as a compressed archive file with a .zip file extension.


Conditional parameters

None



Optional parameters

None


Example

AdminTask.addLocalRepositoryBundle('-file path')

Parent topic: Administer bundles in the internal bundle repository using wsadmin

Parent topic: OSGiApplicationCommands: OSGi Applications administrative commands

Related concepts:

About OSGi Applications

Related tasks:

Secure OSGi Applications
Administer bundles in the internal bundle repository
Administer bundles in the internal bundle repository using wsadmin

Related reference:

listLocalRepositoryBundles command
removeLocalRepositoryBundle command
removeLocalRepositoryBundles command
showLocalRepositoryBundle command
OSGi Applications: Troubleshooting tips

Related information:

Internal bundle repository [Collection]
Internal bundle repository [Settings]
Upload bundle [Settings]
Reference topic Feedback
Copyright IBM Corporation 2009, 2011. All Rights Reserved.
This information center is powered by Eclipse technology.

+

Search Tips   |   Advanced Search