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