WebSphere MQ Adapter 6.5 | webMethods WebSphere MQ Adapter Documentation | webMethods WebSphere MQ Adapter Installation and User’s Guide Documentation | About the WebSphere MQ Adapter | Associating Connections and Adapter Services | Programmatically Supply a Value for $connectionName at Run Time
 
Programmatically Supply a Value for $connectionName at Run Time
At run time you can programmatically supply a connection name in the $connectionName field. This field enables you to dynamically select the connection a service uses to interact with the adapter's resource.
*This method temporarily overrides the adapter service's default connection.
*Use this method when you need to choose between a limited number of connections at run time.
*This method enables one service to interact with multiple, similar backend resources. For example, a service can be defined to use a default connection that places a message on an output queue. However, at run time you can override the default connection and instead use another connection to interact with a different output queue.
For more information about overriding a service's default connection at run time, see Dynamically Changing a Service's Connection at Run Time.