Here is my routing

/       <camelContext xmlns="http://camel.apache.org/schema/spring";>
                <route>
                        <from
uri="spring-amqp:test.general.topic:test.general.queue:test.general.queue?type=topic&amp;autodelete=false&amp;durable=true&amp;acknowledgeMode=AUTO"
/>
                        <choice>
                                <when>
                                        <simple>${headers.apmtype} == 
'schedule'</simple>
                                        <to
uri="spring-amqp:test.scheduler.topic:test.scheduler.queue:test.scheduler.queue?type=topic&amp;autodelete=false&amp;durable=true&amp;acknowledgeMode=AUTO"
/>
                                </when>
                                <when>
                                        <simple>${headers.apmtype} == 
'email'</simple>
                                        <to
uri="spring-amqp:test.email.topic:test.email.queue:test.email.queue?type=topic&amp;autodelete=false&amp;durable=true&amp;acknowledgeMode=AUTO"
/>
                                </when>
                        </choice>
                </route>
        </camelContext>/



--
View this message in context: 
http://camel.465427.n5.nabble.com/Spring-AMQP-Apache-Camel-Component-Released-tp5027785p5744409.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to