Configure dynamic from endpoint for the camel route
Issue
- We have defined a bean in our blueprint
<bean id="deviceManagerConfig" class="com.myCompany.DeviceManagerConfig" />
- The beans contains some attributes that we need to use in our blueprint definitions
public class DeviceManagerConfig {
private Integer concurrentConsumer; // initialized with backend logic
public Integer getConcurrentConsumer() {
return concurrentConsumer;
}
}
- We are trying to reference the bean method to add the parameter to our route dynamically, something like
<camel:route id="testRoute">
<camel:from uri="jms:queue:testQueue?concurrentConsumers=${bean:deviceManagerConfig?method=getConcurrentConsumer}" />
Environment
- RedHat JBoss Fuse
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.