How to use String constants in camel's blueprint.xml ?

Solution Verified - Updated -

Issue

  • In java code, user is using literals like
@Produce(uri = "activemq:queue:uk.gov.camden.planning.alerts.sendNotifications")
    protected ProducerTemplate inputEndpoint;
  • And in blueprint.xml files, user then use
<route id="listSubscribedAlerts">
<from uri="activemq:queue:xxx.yyy..sendNotifications" />
  • Is there any way to use something like below inside of a blueprint.xml file?
public interface iRouteContants {
    public static final String SEND_QUEUE = "activemq:queue:uk.gov.camden.planning.alerts.sendNotifications"
}

Environment

  • Red Hat JBoss Fuse
    • 6.2.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.