camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tide08 <>
Subject Using route as template to create dynamic routes
Date Wed, 22 Sep 2010 19:31:25 GMT


Here is what I need, I suspect it is possible with camel but cannot figure
out how to achieve it. If anyone can give me some leads on how to achieve

I have multiple routes, one of which is as below.

    <camel:from uri="queue:somequeue" />
    <camel:to uri="bean:someBean" />
    <camel:to uri="someProcessor" />

Depending on the environment, there can be more than entry points i.e.
multiple queue's to consume from. For ex: on QA env there is only 1 queue,
on Production there are 3 queues.

I see there are loadbalancer and dynamicRouter component but those are only
used in "to" part of route (atleast from examples I see).

So I was wondering if I can create routes dynamically using above route as
template. On start up, look at number of queue's and than for each queue
create copy of above route.

Or is there any better way to do this?


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message