Tuxedo Adapter 6.0 | webMethods Tuxedo Adapter Documentation | webMethods Tuxedo Adapter Installation and User’s Documentation | Adapter Connections | Dynamically Changing Adapter Connections at Run Time
 
Dynamically Changing Adapter Connections at Run Time
You can run an adapter service using a connection other than the default connection that was associated with the service when the service was created. To override the default, you must pass a value through the pipeline into the $connectionName variable.
For example, you have a flow that creates an account on the production application server. However, you also want the flow to have the capability to create the account on the test server at run time. To facilitate this capability, you can create a branch step in the flow logic. The branch step allows you to conditionally execute a step based on the value of a variable at run time. You can design your flow to pass this value to $connectionNamebased on the conditions you set. For more information about building flow services and using the branch step, see the webMethods Service Development Help for your release.
Keep in mind these restrictions when using dynamic connections:
*The Tuxedo services invoked by the adapter service must be deployed on both application servers.
*The $connectionName variable is present only in services:
*Created with Digital Event Services 6.5 or later
*Created with Digital Event Services 6.1 (or earlier) and edited with Digital Event Services 6.5 or later
*Created with Designer
For more information, see Changing the Connection Associated with an Adapter Service at Design Time.