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