is it possible to start activemq with a configuration file that's not in one of the default locations?

activemq-classic, configuration

Solution

Yes, it is possible. Here are 3 possible answers.

If classpath is setup properly:

activemq start xbean:myconfig.xml

activemq start xbean:file:./conf/broker1.xml

Not using the classpath:

activemq start xbean:file:C:/ActiveMQ/conf/broker2.xml

reference: http://activemq.apache.org/activemq-command-line-tools-reference.html

Problem

All right all you activemq guru's out there... Currently activemq require a configuration file before it runs. It appears from its debug output message: ``` $ ./activemq start -h INFO: Using default configuration (you can configure options in one of these file: /etc/default/activemq /home/user_name/.activemqrc) ``` That you can only put it in one of those two locations. Anybody know if this is the case? Is there some command line parameter to specify its location? Thanks! -roger-

Original source