WebSphere

Dynamic routing

You can route messages in various ways using endpoints defined at integration time or endpoints determined, dynamically, at run time.

Dynamic routing covers message routing where the flow is dynamic but all possible endpoints are predefined in a Service Component Architecture (SCA) module, and message routing where the flow is dynamic and the endpoint selection is also dynamic. In the latter case, the service endpoints are selected from an external source, at run time. Dynamic routing is supported across all bindings, with the exception of the EJB binding.

Dynamic endpoint selection

The run time has the capability to route messages to an endpoint address identified by a message header element. This message header element can be updated by mediation primitives, in a mediation flow. The endpoint address could be updated with information from a registry, a database, or with information from the message itself.

In order for the run time to implement dynamic routing on a request, the SCA module must have the Use dynamic endpoint if set in the message header property set. Integration developers can set the Use dynamic endpoint if set in the message header property or they can promote it (make it visible at run time), so that the runtime administrator can set it. You can view module properties in the Module Properties window. To see the window, click Applications > SCA Modules > Module Properties. The integration developer gives promoted properties alias names, and these are the names displayed on the administrative console.

Registry

You can use IBM® WebSphere® Service Registry and Repository (WSRR) to store service endpoint information, and then create SCA modules to retrieve endpoints from the WSRR registry.

When you develop SCA modules, you use the Endpoint Lookup mediation primitive to allow a mediation flow to query a WSRR registry for a service endpoint, or a set of service endpoints. If an SCA module retrieves a set of endpoints then it must use another mediation primitive to select the preferred one.


concept Concept topic

Terms of use | Feedback


Timestamp icon Last updated: 20 June 2010 00:38:42 BST (DRAFT)


http://publib.boulder.ibm.com/infocenter/dmndhelp/v6r2mx/topic//com.ibm.websphere.wbpm.scenarios.esb1.620.doc/concepts/cwesb_overviewdynamicrouting.html
Copyright IBM Corporation 2005, 2010. All Rights Reserved.
This information center is powered by Eclipse technology (http://www.eclipse.org).
iDoc on