Hey Matt! Welcome in the Apache Camel community!
Something like this should fit your needs: <camelContext id="camelContext" xmlns=" http://camel.apache.org/schema/blueprint"> <route id="in-bound" autoStartup="true"> <description>Camel In-Bound Route</description> <from uri="activemq:TestHarness.A?concurrentConsumers=10"/> <to uri="bean:messageReceiver?method=onMessage"/> <to uri="activemq:TestHarness.B"/> </route> <camelContext> By default, the ActiveMQ component use the InOnly message exchange pattern. This means you consume a message, process the message and put the response into another queue. The WIKI pages at [1] and [2] are also useful. There you can find more information about concurrentConsumers option. [1] http://camel.apache.org/jms.html [2] http://camel.apache.org/activemq.html Best, Christian On Fri, Nov 11, 2011 at 6:01 PM, mattmadhavan <[email protected]>wrote: > Hello, > I have been struggling recently to define a simple rout! > > I want the messages sent to a JMS (AMQ) to be sent to a method of a bean > and > then reply sent to another queue. > > Also the bean may take more than 20 secs to process. So I would like to add > a large timeout value as well. > > This is what I have now! > > <camelContext id="camelContext" > xmlns="http://camel.apache.org/schema/blueprint"> > <route id="in-bound" autoStartup="true"> > <description>Camel In-Bound Route</description> > <from uri="activemq:TestHarness.A"/> > <to uri="bean:messageReceiver?method=onMessage"/> > </route> > </camelContext> > > How do I extend this? > > > Any help will be appreciated in advance > > Thanks > Matt > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Help-creating-a-route-amq1-bean-amq2-with-timeouts-tp4986086p4986086.html > Sent from the Camel - Users mailing list archive at Nabble.com. >
