Does A-MQ allow to use xbean notation to pass in a custom broker configuration file?

Solution Unverified - Updated -

Issue

  • Currently in "etc/org.fusesource.mq.fabric.server-default.cfg" (the a-mq instance config file) the broker configuration file name is hardcoded as following:
broker-name=amq
openwire-port=${activemq.port}
standalone=true
data=${karaf.data}/amq
config=${karaf.base}/etc/activemq.xml
  • Is it possible to replace the following :
config=${karaf.base}/etc/activemq.xml
  • with an expression sothat in using the properties substitution mechanism its value can be overwritten at the time of broker bootup:
config=${karaf.base}/etc/${amq-xml}
  • Is it then possible to start the broker with the following system property:
./amq -Damq-xml=myCustomBroker.xml 

Environment

  • Red Hat JBoss A-MQ
    • 6.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.