activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Bain <tb...@alumni.duke.edu>
Subject Re: Using Environment Variables in Activemq.xml
Date Fri, 16 Feb 2018 13:54:41 GMT
I think (haven't tried it) you should be able to reference environment
variables too, you'd just have to use Spring's syntax for it in
SPEL: #{systemProperties['key']}

On Feb 16, 2018 6:10 AM, "Thiago Veronezi" <thiago@veronezi.org> wrote:

> 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