1 Reply Latest reply on Oct 11, 2012 5:51 PM by gioppoluca

    AS 7.1.1 how to pass system properties?

    gioppoluca

      I created a jboss.properties in /opt/jboss

      with this content

       

      jboss.bind.address.management=127.0.0.1

       

      This is the value I have in the host.xml file

      jboss.bind.address.management:10.1.1.71

       

      I'm starting jboss with the init.d script that I modified to use the -P parameter in this way

      su - $JBOSS_USER -c "LAUNCH_JBOSS_IN_BACKGROUND=1 JBOSS_PIDFILE=$JBOSS_PIDFILE $JBOSS_SCRIPT -c $JBOSS_CONFIG -P=/opt/jboss/jboss.properties" 2>&1 > $JBOSS_CONSOLE_LOG &

       

      But no way to connect with the jboss_cli sign that the property is not red and not overiding the value.

       

      How to make proper use of ssytem property substitution, it would be really usefull since I'm making automated installation of many machines with puppet and substituting data into XML files is a mess, but creating a property file should be a piece of cake.

      Please help.

      Thanks