I have two servers that require the same feed information (prod and test). The following does work:
<ns2:route id="JSON-INT" xmlns:ns2="http://camel.apache.org/schema/spring">
<ns2:from uri="mq:MY.MQ.FEED"/>
<ns2:marshal ref="feedToJsonTransformer" id="marshal2"/>
<ns2:to uri="direct:internal" id="to5"/>
</ns2:route>
<ns2:route id="INT-PROD-AND-TEST-INTERNAL" xmlns:ns2="http://camel.apache.org/schema/spring">
<ns2:from uri="direct:internal"/>
<ns2:multicast stopOnException="false" id="multicast1">
<ns2:to uri="direct:prod" id="to6"/>
<ns2:to uri="direct:test" id="to7"/>
</ns2:multicast>
</ns2:route>
<ns2:route id="INT-PROD" xmlns:ns2="http://camel.apache.org/schema/spring">
<ns2:from uri="direct:prod"/>
<ns2:to uri="jms:appProd" id="to8"/>
</ns2:route>
<ns2:route id="INT-TEST" xmlns:ns2="http://camel.apache.org/schema/spring">
<ns2:from uri="direct:test"/>
<ns2:to uri="jms:appTest" id="to9"/>
</ns2:route>
However when I shut down my test server (it isn't always needed and costs money) after about an hour the production server stops receiving messages. I am assuming the queue is filling right back and stops the process? Is there a way to ignore the test server if it is down?