modifySIBMediation command

Use the modifySIBMediation command to change the properties of a mediation.

Para executar o comando, utilize o objeto AdminTask do cliente de script wsadmin.

[IBM i][IBM i]O cliente de script wsadmin é executado do Qshell. [IBM i]Para obter informações adicionais, consulte Configurando o Qshell para Executar Scripts do WebSphere Usando o Script wsadmin.

A ajuda da linha de comandos é fornecida para comandos do barramento de integração de serviços:
  • Para obter uma lista dos comandos de barramento de integração de serviços disponíveis no Jython e uma breve descrição de cada comando, digite o seguinte comando no prompt wsadmin:

    print AdminTask.help('SIBAdminCommands')

  • Para obter ajuda de visão geral sobre um determinado comando, digite o seguinte comando no prompt wsadmin:

    print AdminTask.help('command_name')

Após utilizar o comando, salve suas alterações na configuração principal, utilizando o seguinte comando:

AdminConfig.save()

Purpose

This command changes properties of a mediation.

Target object

A mediation.

Required parameters

-bus busname
The name of the service integration bus on which the mediation is to be created. You can use the listSIBuses command to list the names of existing buses.
-mediationName mediation_name
The name by which this mediation is known for administrative purposes.

Conditional parameters

None.

Optional parameters

-description text
An optional description for the mediation, for administrative purposes.
-handlerListName
-globalTransaction TRUE | FALSE
FALSE
A local transaction is started for each message processed. You only have to select this option for mediations that access other resource managers such as databases, or interact with enterprise beans that require a global transaction.
TRUE
A global transaction is started for each message processed.
-allowConcurrentMediation TRUE | FALSE
TRUE
Apply the mediation to multiple messages concurrently, and preserve message ordering.
FALSE
Apply the mediation to a single message at a time. This setting is required to ensure that message ordering is preserved.
-selector text

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.

-discriminator text
Discriminador

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.

Example

  • Using Jython:
    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 {}}
  • Using Jacl:
    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 {}}

Ícone que indica o tipo de tópico Tópico de Referência



Ícone de registro de data e hora Última atualização: July 9, 2016 7:51
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=rjp_cli_med_modify
Nome do arquivo: rjp_cli_med_modify.html