Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

Multicast - Same Message Go to Multiple Routes Manually Without Multicast

Input payload:
<?xml version='1.0' encoding='UTF-8'?>
<root>
<num1>10</num1>
<num2>2</num2>
</root>

Same input payload go throught all 4 routes to do different operation/task (Add,


Minus, Multiply, Divide).

----------------------------------------------------------------
<?xml version='1.0' encoding='UTF-8'?>
<root>
<row>
<op>add</op>
<detail>${header.num1} + ${header.num2}</detail>
</row>
</root>
----------------------------------------------------------------
<?xml version='1.0' encoding='UTF-8'?>
<root>
<row>
<op>minus</op>
<detail>${header.num1} - ${header.num2}</detail>
</row>
</root>
----------------------------------------------------------------
<?xml version='1.0' encoding='UTF-8'?>
<root>
<row>
<op>multiply</op>
<detail>${header.num1} * ${header.num2}</detail>
</row>
</root>
----------------------------------------------------------------
<?xml version='1.0' encoding='UTF-8'?>
<root>
<row>
<op>divide</op>
<detail>${header.num1} / ${header.num2}</detail>
</row>
</root>
----------------------------------------------------------------

Construct all 4 back into single Message

You might also like