I created a jboss.properties in /opt/jboss
with this content
This is the value I have in the host.xml file
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.
Solved it was a permission problem.