mediateSIBDestination command
Use the mediateSIBDestination command to mediate a bus destination for a service integration bus.
Mediating a destination associates a mediation with a selected bus destination. At run time, the mediation applies some message processing to the messages handled by the bus destination. Note that we can only mediate a destination with a single mediation at a time. We can mediate more than one destination with the same mediation.
To run the command, use the AdminTask object of the wsadmin scripting client.
(iSeries) (iSeries) The wsadmin scripting client is run from Qshell. (iSeries) See Configure Qshell to run WebSphere scripts .
Command-line help is provided for service integration bus commands:
- For a list of the available service integration bus commands in Jython and a brief description of each command, enter at the wsadmin prompt:
print AdminTask.help('SIBAdminCommands')
- For overview help on a given command, enter at the wsadmin prompt:
print AdminTask.help('command_name')
After using the command, save the changes to the master configuration using the following command:
AdminConfig.save()
This command mediates a bus destination for a service integration bus. There are parameters we can use to create a mediation queue point on an IBM MQ server, and create the corresponding mediation execution point on a cluster or a server.
Target object
None.
Required parameters
- -bus bus_name -destinationName destination_name
- The destination to be mediated.
- -mediationName mediation_name
- The name of the mediation to be applied to the bus destination. This mediation must exist before this command can be used.
Conditional parameters
- -wmqServer mq_server -wmqQueueName mq_queue_name
- [Queue or web service destination] To assign the mediation point to an IBM MQ queue, specify both the name of the IBM MQ server bus member where the mediation point is to be assigned, and the name of the IBM MQ queue to be used to store messages ready for mediation. mq_server is the name of the IBM MQ server as specified in the -name parameter when creating the IBM MQ server. mq_queue_name is the name allocated to the IBM MQ queue by IBM MQ administration.
- -node node -server server
- [Not topic space] To mediate the bus destination to a server bus member, specify both the name of the node on which the server runs and the name of the server.
- -cluster cluster_name
- [Not topic space] To mediate the bus destination to a cluster bus member, specify the name of the cluster.
Optional parameters
- -nonPersistentReliability
Specify the service integration quality of service to use with nonpersistent IBM MQ messages received by service integration from an IBM MQ network. The messages in an IBM MQ network have their own quality of service level. This is either persistent or non-persistent. When these messages are received by a service integration application, they are assigned a service integration quality of service level that depends on their IBM MQ quality of service level.
For nonpersistent IBM MQ messages received, the default service integration quality of service is RELIABLE_NONPERSISTENT. If we choose to override this default, we will probably choose one of the other nonpersistent service integration qualities of service BEST_EFFORT_NONPERSISTENT or EXPRESS_NONPERSISTENT. However, we can choose any of the five possible service integration qualities of service:
- BEST_EFFORT_NONPERSISTENT
- Messages are discarded when a messaging engine stops or fails. Messages might also be discarded if a connection used to send them becomes unavailable or as a result of constrained system resources.
- EXPRESS_NONPERSISTENT
- Messages are discarded when a messaging engine stops or fails. Messages might also be discarded if a connection used to send them becomes unavailable.
- RELIABLE_NONPERSISTENT
- Messages are discarded when a messaging engine stops or fails.
- RELIABLE_PERSISTENT
- Messages might be discarded when a messaging engine fails.
- ASSURED_PERSISTENT
- Messages are not discarded.
Higher levels of reliability have higher impacts on performance.
See Mapping the JMS delivery option and message reliability to and from the IBM MQ persistence value.
- -persistentReliability
Specify the service integration quality of service to use with persistent IBM MQ messages received by service integration from an IBM MQ network. The messages in an IBM MQ network have their own quality of service level. This is either persistent or non-persistent. When these messages are received by a service integration application, they are assigned a service integration quality of service level that depends on their IBM MQ quality of service level.
For persistent IBM MQ messages received, the default service integration quality of service is ASSURED_PERSISTENT. If we choose to override this default, we will probably choose the other persistent service integration quality of service RELIABLE_PERSISTENT. However, we can choose any of the five possible service integration qualities of service:
- BEST_EFFORT_NONPERSISTENT
- EXPRESS_NONPERSISTENT
- RELIABLE_NONPERSISTENT
- RELIABLE_PERSISTENT
- ASSURED_PERSISTENT
See Mapping the JMS delivery option and message reliability to and from the IBM MQ persistence value.
- -useRFH2
- Determines whether service integration technologies includes an RFH2 header in messages it places on the mediation point. Possible values are:
The default is TRUE.
- TRUE
- FALSE
- -maintainStrictMessageOrder
- Maintain strict message order. Possible values are:
- Selected
- Maintains the order in which a producer sends messages to the destination.
At run time, this property has priority over other configuration property values. For information on the configuration properties that are overridden at run time, see Strict message ordering for bus destinations.
- Cleared
- Message order is not preserved for this destination.
Example
- Use Jython:
wsadmin>AdminTask.mediateSIBDestination("-bus abus -destinationName myqueue -mediationName filterMed -cluster cluster1")- Use Jacl:
wsadmin>$AdminTask mediateSIBDestination {-bus abus -destinationName myqueue -mediationName filterMed -cluster cluster1}