Is it possible to run activemq with a configuration file that is not in one of the default locations?

Everything that you, the acting guru, there ...

Activemq currently requires a configuration file before running. It is output from the 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)

So that you can only put it in one of these two places. Does anyone know if that is the case? Is there a command line parameter to indicate its location?

Thank! -roger -

+3
source share
4 answers

Yes it is possible. Here are 3 possible answers.

If the classpath is configured correctly:

activemq start xbean:myconfig.xml

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

Do not use classpath:

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

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

+3
source

, , . bin/activemq create, , bin, conf data. runnable insance, .activemqrc .

. : http://activemq.apache.org/unix-shell-script.html

+1

:

bin/activemq start xbean:/home/user/activemq.xml

, xml , jetty.xml, .

5.6 SNAPSHOT env var ACTIVEMQ_CONF, ,

0

/bin/activemq script # # , .

, ,

Unix

!

0
source

All Articles