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


addOSGiExtensions command

Use the addOSGiExtensions command to add several composite bundles as extensions to a composition unit.

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 several composite bundles as extensions to a composition unit. The composite bundles must be available in the internal bundle repository, or in an external repository that can process composite bundles.


Target object

The specified composition unit.



Required parameters

-cuName cu_name

The name of the composition unit.

-extensions

A list of the composite bundle extensions to be added. Each list entry contains the symbolic name and the version for a composite bundle. The symbolic name, together with the version, identifies a unique composite bundle.

cba_symbolic_name

The non-localizable name for this composite bundle.

cba_version

The version of this composite bundle.

The composite bundle version is in the form n.n.n, for example 1.1.0.


Conditional parameters

None



Optional parameters

None


Example

AdminTask.addOSGiExtensions([
  '-cuName', 'cu_name',
  '-extensions',
    'cba1_symbolic_name;cba1_version
     cba2_symbolic_name;cba2_version
     cba3_symbolic_name;cba3_version
    '
])

Parent topic: Add or removing extensions for an OSGi composition unit using wsadmin

Parent topic: OSGiApplicationCommands: OSGi Applications administrative commands

Related concepts:

About OSGi Applications

Related tasks:

Secure OSGi Applications
Add or removing extensions for an OSGi composition unit
Add or removing extensions for an OSGi composition unit using wsadmin

Related reference:

addOSGiExtension command
removeOSGiExtension command
listOSGiExtensions command
listAvailableOSGiExtensions command
removeOSGiExtensions command
OSGi Applications: Troubleshooting tips
Reference topic Feedback
Copyright IBM Corporation 2009, 2011. All Rights Reserved.
This information center is powered by Eclipse technology.

+

Search Tips   |   Advanced Search