Creating a new mediation using the wsadmin tool

Use this command to create a new mediation.

This command provides only a subset of the properties available. If you want to set other properties, you need to use the administrative console or wsadmin and JACL

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 the topic "Configure Qshell to run WebSphere® Application Server scripts".

This command is only valid when used with WebSphere Application Server Version 6 and later application servers. Do not use it with earlier versions.

Command-line help is provided for service integration bus commands:

For additional details of the command properties, see the related reference topic.

Purpose

This command creates a new mediation.

Command name
createSIBMediation
Target
None.
Result
A mediation object.

To save the changes made by the command, invoke the "save" command on the AdminConfig object.

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.
-handlerListName
The name of the handler list that was defined when the mediation was deployed.

Conditional parameters

None.

Optional parameters

-description text
An optional description for the mediation, for administrative purposes.
-globalTransaction TRUE | FALSE
Whether or not a global transaction is started for each message processed.
FALSE
A local transaction is started for each message processed. You only need 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
Select this option (setting it to true) to apply the mediation to multiple messages concurrently. Message ordering is not preserved. The default option is 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
Controls which messages are sent to the mediation. If a message matches the rule defined by the selector text string, then the mediation is applied to the message.

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
Discriminator

Compare this property with the selector property. The rule specified by the selector examines the header and properties of the message, while 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

wsadmin>$AdminTask createSIBMediation {-bus abus -mediationName switchMed
 -handlerListName switchHandler}
(cells/9994GKCCell01/buses/abus|sib-mediations.xml#SIBDestinationMediation_1098219493014)



Related reference
Mediation administrative commands
Reference topic Reference topic    

Terms and conditions for information centers | Feedback

Last updatedLast updated: Aug 30, 2013 8:21:57 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=pix&product=was-express-iseries&topic=rjp_cli_med_create
File name: rjp_cli_med_create.html