The simplest way to specify multiple inputs is to list multiple
from elements at the beginning of the route. This approach is
useful when you want to process messages from several inputs using the same set of
processors and send them all to the same endpoint.
Placing multiple from elements in series is equivalent to
using three independent routes. Exchanges from each input are processed independently of
each other and they are processed in separate threads.
Example 3.1 shows a route that uses two independent inputs.
Example 3.1. Multiple independent inputs
<from uri="activemq:Nyse" id="NYSE" /> <from uri="activemq:Nasdaq" id="NASDAQ" /> <to uri="activemq:USTxn" />
Example 3.2 shows the equivalent independent routes.
Example 3.2. Separate routes
<route> <from uri="activemq:Nyse" id="NYSE" /> <to uri="activemq:USTxn" /> </route> <route> <from uri="activemq:Nasdaq" id="NASDAQ" /> <to uri="activemq:USTxn" /> </route>








