Use the modifySIBMediation command to change the properties of a mediation.
To run the command, use the AdminTask object of the wsadmin scripting client.
The wsadmin scripting client is run from Qshell. For more information, see Configuring Qshell to run WebSphere® Application Server scripts.
print AdminTask.help('SIBAdminCommands')
print AdminTask.help('command_name')
AdminConfig.save()
This command changes properties of a mediation.
A mediation.
None.
If the message does not match the rule defined by the selector text string, then the message is not mediated. If a message contains both Selector and Discriminator, it must match both rules for the message to be mediated. If either the Selector or the Discriminator rule does not match, the message is not mediated.
Compare this property with the selector property. The rule specified by the selector examines the header and properties of the message, whereas the discriminator examines the topic of the message. If a message contains both selector and discriminator, it must match both rules for the message to be mediated. If either the selector or the discriminator rule does not match, the message is not mediated.
wsadmin>AdminTask.showSIBMediation("-bus abus -mediationName switchMed") {uuid 39588C4821BB046E} {selector {}} {contextInfo {}} {discriminator {}} {allowConcurrentMediation false} {globalTransaction false} {mediationName switchMed} {handlerListName switchHandler} {description {}} wsadmin>AdminTask.modifySIBMediation(["-bus", "abus", "-mediationName", "switchMed", "-selector", ["JMSXDeliveryCount > 1000"]] ) wsadmin>AdminTask.showSIBMediation("-bus abus -mediationName switchMed") {uuid 39588C4821BB046E} {selector {JMSXDeliveryCount > 1000}} {contextInfo {}} {discriminator {}} {allowConcurrentMediation false} {globalTransaction false} {mediationName switchMed} {handlerListName switchHandler} {description {}}
wsadmin>$AdminTask showSIBMediation {-bus abus -mediationName switchMed} {uuid 39588C4821BB046E} {selector {}} {contextInfo {}} {discriminator {}} {allowConcurrentMediation false} {globalTransaction false} {mediationName switchMed} {handlerListName switchHandler} {description {}} wsadmin>$AdminTask modifySIBMediation {-bus abus -mediationName switchMed -selector {JMSXDeliveryCount > 1000}} wsadmin>$AdminTask showSIBMediation {-bus abus -mediationName switchMed} {uuid 39588C4821BB046E} {selector {JMSXDeliveryCount > 1000}} {contextInfo {}} {discriminator {}} {allowConcurrentMediation false} {globalTransaction false} {mediationName switchMed} {handlerListName switchHandler} {description {}}