Hi
Current Spring configure doesn't support to create the route dynamically
as the Java DSL.
If you have to use the Spring configure to start the camel context, you
could consider to specify the RouteBuilder[1] yourself in the Spring
configure.
[1]http://camel.apache.org/spring.html
Willem
Bond wrote:
I have a following requirement.
<route>
<from uri="jms:topic:topic1"/>
<to uri="bean:msgParser"/>
<to uri="bean:msgProcessor"/>
</route>
<route>
<from uri="jms:topic:topic2"/>
<to uri="bean:msgParser"/>
<to uri="bean:msgProcessor"/>
</route>
<route>
<from uri="jms:topic:topic3"/>
<to uri="bean:msgParser"/>
<to uri="bean:msgProcessor"/>
</route>
.
.
.
.
.
<route>
<from uri="jms:topic:topicN"/>
<to uri="bean:msgParser"/>
<to uri="bean:msgProcessor"/>
</route>
N= No. of configured topics. All the above route are independent of each
other and parsing and processing would be daone in different threads.
I know above thing can be achieved in Java DSL using a for loop. I would
like to know if the same can be achived using spring xml.
Thanks in advance.