activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thiago Veronezi <thi...@veronezi.org>
Subject Re: Using Environment Variables in Activemq.xml
Date Fri, 16 Feb 2018 13:10:45 GMT
You can use the -D option to copy your environment variables to
System.properties via "bin/env". For example:

ACTIVEMQ_OPTS="$ACTIVEMQ_OPTS_MEMORY
-Djava.util.logging.config.file=logging.properties
-Djava.security.auth.login.config=$ACTIVEMQ_CONF/login.config
-Dmy.network.connector=$MY_NC_ENV_VALUE"

Then, from activemq.xml file you can do this...

<networkConnectors>
  <networkConnector uri="${my.network.connector}"/>
</networkConnectors>

[]s,
Thiago


On Thu, Feb 15, 2018 at 7:34 PM, jason_pacino <
jpacino@foundationmedicine.com> wrote:

> Is it possible to use environment variables in the activemq.xml file? For
> anything that is specific to my cluster. Broker name, Lockdb location and
> user, persistence db location etc?
>
>
>
> --
> Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-
> f2341805.html
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message