The first bit of Spring you showed is correct. If you just want to do some
pipelining though, its simpler to avoid the 2nd from

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

On Wed, Oct 22, 2008 at 9:08 AM, selezovikj <[EMAIL PROTECTED]>wrote:

>
> 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.
>
>


-- 
Cheers,
Jon

http://janstey.blogspot.com/

Reply via email to