How can I define multiple routes in Spring ? 
Logically, they should be in the same context and I just define different
<route> elements: 

<camelContext id="camel"
                xmlns="http://activemq.apache.org/camel/schema/spring";>
                <route>
                        <from uri="jms:topic:LoggingTopic"/>
                        <to uri="bean:msgParser"/>
                </route>
              <route>
                        <from uri="bean:msgParser"/>
                        <to uri="bean:otherBean"/>
              </route>
</camelContext>

I know that in this case I don't need two separate routes, since I am only
pipelining.
In the Java DSL I would do the camel routing like this: 

from("ms:topic:LoggingTopic").to("bean:msgParser");

Then I have another <from> element:

from("bean:msgParser").to("bean:otherBean");
        
What would be the equivalent configuration in Spring ?

-- 
View this message in context: 
http://www.nabble.com/Multiple-Camel-Routes-in-Spring-tp20108937s22882p20108937.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to