Configure dynamic from endpoint for the camel route

Solution In Progress - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content