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, 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