addLocalRepositoryBundle command

Use the addLocalRepositoryBundle command to add a bundle or composite bundle to the internal bundle repository that is included in the product. 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.

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

Command-line help is provided for OSGi Applications commands:
  • For a list of the available OSGi Applications commands in Jython and a brief description of each command, enter the following command at the wsadmin prompt:

    print AdminTask.help('OSGiApplicationCommands')

  • For overview help on a given command, enter the following command at the wsadmin prompt:

    print AdminTask.help('command_name')

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

AdminConfig.save()

Purpose

This command adds a bundle or a composite bundle to the internal bundle repository.

When you add a composite bundle, if it directly contains OSGi bundles, these bundles are installed into the repository as though they are individually uploaded, and the composite bundle is also added to the bundle repository. If the composite bundle references OSGi bundles, these bundles must be present in the internal bundle repository.

Target object

None

Required parameters

-file path
The path and file name of a JAR file that is available on the server file system and that contains a suitably-configured manifest file, or the path and file name of a composite bundle archive (CBA) file.

Conditional parameters

None.

Optional parameters

None.

Example

AdminTask.addLocalRepositoryBundle('-file path')

Icon that indicates the topic type Reference topic

Terms and conditions for information centers | Feedback


Timestamp icon Last updated: Saturday, 20 October 2012
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=v700osgijpa&product=was-nd-mp&topic=ra_cli_obr_int_add

Copyright IBM Corporation 2009, 2012.
This information center is powered by Eclipse technology. (http://www.eclipse.org)