[GitHub] activemq-artemis pull request #1862: ARTEMIS-1676 Support overriding of JAVA...

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[GitHub] activemq-artemis pull request #1862: ARTEMIS-1676 Support overriding of JAVA...

jbertram-2
GitHub user mtaylor opened a pull request:

    https://github.com/apache/activemq-artemis/pull/1862

    ARTEMIS-1676 Support overriding of JAVA_ARGS via env variable

   

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/mtaylor/activemq-artemis ARTEMIS-1676

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/activemq-artemis/pull/1862.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1862
   
----
commit 62d904f47979afae105981144053f30430ecd310
Author: Martyn Taylor <mtaylor@...>
Date:   2018-02-09T16:29:44Z

    ARTEMIS-1676 Support overriding of JAVA_ARGS via env variable

----


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] activemq-artemis pull request #1862: ARTEMIS-1676 Support overriding of JAVA...

jbertram-2
Github user clebertsuconic commented on a diff in the pull request:

    https://github.com/apache/activemq-artemis/pull/1862#discussion_r167280403
 
    --- Diff: artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/etc/artemis.profile ---
    @@ -21,14 +21,20 @@ ARTEMIS_INSTANCE='${artemis.instance}'
     # The logging config will need an URI
     # this will be encoded in case you use spaces or special characters
     # on your directory structure
    -ARTEMIS_INSTANCE_URI='${artemis.instance.uri}'
     
    -# Cluster Properties: Used to pass arguments to ActiveMQ Artemis which can be referenced in broker.xml
    -#ARTEMIS_CLUSTER_PROPS="-Dactivemq.remoting.default.port=61617 -Dactivemq.remoting.amqp.port=5673 -Dactivemq.remoting.stomp.port=61614 -Dactivemq.remoting.hornetq.port=5446"
    +if [ -z "$ARTEMIS_INSTANCE_URI" ]; then
    +    ARTEMIS_INSTANCE_URI='${artemis.instance.uri}'
    +fi
     
    +# Cluster Properties: Used to pass arguments to ActiveMQ Artemis which can be referenced in broker.xml
    +if [ -z "$ARTEMIS_CLUSTER_PROPS" ]; then
    +    #ARTEMIS_CLUSTER_PROPS="-Dactivemq.remoting.default.port=61617 -Dactivemq.remoting.amqp.port=5673 -Dactivemq.remoting.stomp.port=61614 -Dactivemq.remoting.hornetq.port=5446"
    --- End diff --
   
    what's the point of adding this commented out? the user would have to add it anyways?


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] activemq-artemis issue #1862: ARTEMIS-1676 Support overriding of JAVA_ARGS v...

jbertram-2
In reply to this post by jbertram-2
Github user jbertram commented on the issue:

    https://github.com/apache/activemq-artemis/pull/1862
 
    I something similar possible for artemis.profile.cmd also?


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] activemq-artemis pull request #1862: ARTEMIS-1676 Support overriding of JAVA...

jbertram-2
In reply to this post by jbertram-2
Github user mtaylor commented on a diff in the pull request:

    https://github.com/apache/activemq-artemis/pull/1862#discussion_r167639675
 
    --- Diff: artemis-cli/src/main/resources/org/apache/activemq/artemis/cli/commands/etc/artemis.profile ---
    @@ -21,14 +21,20 @@ ARTEMIS_INSTANCE='${artemis.instance}'
     # The logging config will need an URI
     # this will be encoded in case you use spaces or special characters
     # on your directory structure
    -ARTEMIS_INSTANCE_URI='${artemis.instance.uri}'
     
    -# Cluster Properties: Used to pass arguments to ActiveMQ Artemis which can be referenced in broker.xml
    -#ARTEMIS_CLUSTER_PROPS="-Dactivemq.remoting.default.port=61617 -Dactivemq.remoting.amqp.port=5673 -Dactivemq.remoting.stomp.port=61614 -Dactivemq.remoting.hornetq.port=5446"
    +if [ -z "$ARTEMIS_INSTANCE_URI" ]; then
    +    ARTEMIS_INSTANCE_URI='${artemis.instance.uri}'
    +fi
     
    +# Cluster Properties: Used to pass arguments to ActiveMQ Artemis which can be referenced in broker.xml
    +if [ -z "$ARTEMIS_CLUSTER_PROPS" ]; then
    +    #ARTEMIS_CLUSTER_PROPS="-Dactivemq.remoting.default.port=61617 -Dactivemq.remoting.amqp.port=5673 -Dactivemq.remoting.stomp.port=61614 -Dactivemq.remoting.hornetq.port=5446"
    --- End diff --
   
    It is just keeping the same functionality but ensuring the priory isn't overridden when set.  I left in the commented out property as an example


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] activemq-artemis issue #1862: ARTEMIS-1676 Support overriding of JAVA_ARGS v...

jbertram-2
In reply to this post by jbertram-2
Github user mtaylor commented on the issue:

    https://github.com/apache/activemq-artemis/pull/1862
 
    Yes it's possible. We would need to test it on a windows machine.  That profile is actually structured differently


---