Is it possible to define a Camel route with multiple from(), i.e. consume from multiple endpoints?

Solution Verified - Updated -

Issue

  • Is it possible to define a Camel route that consumes from multiple different endpoints?
  • Can a Camel route definition start with multiple from() statements?
  • Will a Camel route like the following work?
    <route id="test-route" >
        <from uri="file:data"/>
        <from uri="http://www.google.com"/>
        <from uri="activemq:queue:incoming"/>
        <to uri="direct:invoke"/>
    </route>

Environment

  • JBoss Fuse 6.x
  • Camel 2.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content