XML DSL (Dynamic Router)

In some situations, we may need to route our messages based on a list of destinations that have been created dynamically, For these types of situations we can use a Dynamic Router that can utilize a self-configuration using a dynamic recipient list. This can be linked to a data store that contains a set of destinations.

In the following example, we see the implementation of an XML DSL Dynamic Router pattern to determine our destinations through the use of a processor.

 

XML DSL Example

<route> <from uri="jms:queue:order"/> <process ref="myDynamicRouter"/> <recipientList> <header>destinations</destinations> </recipientList> </route>

Â