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