Create a gist now

Instantly share code, notes, and snippets.

@abouchama /Camel.xml
Last active Oct 29, 2015

What would you like to do?
<choice>
<when>
<simple>&#39;{{CRM}}&#39; contains &#39;${in.header.Receiver}&#39;</simple>
<setHeader headerName="CRM">
<simple>{{CRM}}</simple>
</setHeader>
<recipientList strategyRef="myStrategy">
<header>CRM</header>
</recipientList>
</when>
<when>
<simple>&#39;{{SAP}}&#39; contains &#39;${in.header.Receiver}&#39;</simple>
<setHeader headerName="SAP">
<simple>{{SAP}}</simple>
</setHeader>
<recipientList strategyRef="myStrategy">
<header>SAP</header>
</recipientList>
</when>
<otherwise>
<to uri="log:NONE?showAll=true&amp;multiline=true"/>
</otherwise>
</choice>
....
<bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent">
<property name="connectionFactory">
<bean class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL" value="${activemq.brokerURL}" />
<property name="userName" value="${activemq.userName}" />
<property name="password" value="${activemq.password}" />
</bean>
</property>
</bean>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment