Network Deployment (Distributed operating systems), v8.0 > Reference > Commands (wsadmin scripting) > OSGiApplicationCommands: OSGi Applications administrative commands
addOSGiExtension command
Use the addOSGiExtension command to add a composite bundle as an extension 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:
- For a list of the available OSGi Applications commands in Jython and a brief description of each command, run at the wsadmin prompt:
print AdminTask.help('OSGiApplicationCommands')
- For overview help on a given command, run at the wsadmin prompt:
print AdminTask.help('command_name')
After using the command, save changes to the master configuration by using the following command:
AdminConfig.save()
Purpose
This command adds a composite bundle as an extension to a composition unit. The composite bundle 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.
-symbolicName cba_symbolic_name
The non-localizable name for this composite bundle.
-version cba_version
The version of this composite bundle. The composite bundle version is in the form n.n.n, for example 1.1.0. The symbolic name, together with the version, identifies a unique composite bundle.
Conditional parameters
None
None
Optional parameters
Example
AdminTask.addOSGiExtension(' -cuName cu_name -symbolicName cba_symbolic_name -version cba_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 ApplicationsRelated tasks:
Secure OSGi Applications
Add or removing extensions for an OSGi composition unit
Add or removing extensions for an OSGi composition unit using wsadminRelated reference:
removeOSGiExtension command
addOSGiExtensions 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.