To
replace an existing composition with a new composition,
use the following sis-console
command, Ant task, or related MBean operation.
Console command
replacecomposition
Command |
replacecomposition <ra-entity> <file> Replace a previously installed composition component with new content from a file
|
||||
---|---|---|---|---|---|
Example |
To replace an existing composition with composition $ ./sis-console replacecomposition sis example-composition.xml Replaced composition CompositionID[name=Example,vendor=ABC,version=1.0] from file example-composition.xml |
Ant task
replacecomposition
Task |
<replacecomposition file="..."/> |
---|---|
Example |
To replace an existing composition with composition <sis-management> <replacecomposition file="example-composition.xml"/> </sis-management> |
MBean operation
MBean |
---|
replace
Operation |
To replace a composition from a URL: public CompositionID replace(String url) throws NullPointerException, MalformedURLException, DeploymentException, ManagementException;
|
---|
replace
Operation |
To replace a composition from a byte array: public CompositionID replace(byte[] content) throws NullPointerException, DeploymentException, ManagementException;
|
---|