You can give your timers different names, e.g. foo1, foo2, foo3, and
they will run in different threads. You might also want to use
multicast <http://camel.apache.org/multicast.html> or splitter
<http://camel.apache.org/splitter.html> with a single timer, depending
on your use-case.
On 10/14/2013 09:14 AM, Ankur wrote:
Hi,
I have different routes which need to be run after every 5 min parallely.
I'm confused how to achieve as right now it is working sequentially instead
of parallely.
my route look like this
<camelContext xmlns="http://camel.apache.org/schema/spring">
<route id="approvalService">
<from uri="timer:foo?period=300s" />
<to uri="bean:activityCenterService?method=processSelectApprovals" />
<to uri="bean:activityCenterService?method=processApprovals" />
</route>
<route id="itService">
<from uri="timer:foo?period=300s" />
<to uri="bean:activityCenterService?method=processSelectIT" />
<to uri="bean:activityCenterService?method=processIT" />
</route>
<route id="newService">
<from uri="timer:foo?period=300s" />
<to uri="bean:activityCenterService?method=processSelectNew" />
<to uri="bean:activityCenterService?method=processNew" />
</route>
</camelContext>
i want all three routes to get execute at the same time.
thanks in advance
Ankur
--
View this message in context:
http://camel.465427.n5.nabble.com/How-to-execute-different-parallely-tp5741543.html
Sent from the Camel - Users mailing list archive at Nabble.com.