I am using JBoss 7.1.1.Final and I have a system properties file that I am trying to pass into JBoss using the -P parameter at startup, this is how I invoke standalone.sh:
./standalone.sh -P=../myown.properties
However the properties are not resolved in my standalone.xml, I can see this when I go onto the Admin console to examine my datasource. This is the configuration in standalone.xml:
<datasource jta="false" jndi-name="java:jboss/datasources/AEDS" pool-name="AEDS" enabled="true" use-ccm="false">
<connection-url>${xdb.connection.url}</connection-url>
<driver-class>${xdb.driver.class}</driver-class>
<driver>${xdb.driver}</driver>
<transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
<pool>
<min-pool-size>10</min-pool-size>
<max-pool-size>50</max-pool-size>
<prefill>false</prefill>
</pool>
<security>
<user-name>${xdb.user}</user-name>
<password>${xdb.password}</password>
</security>
<statement>
<prepared-statement-cache-size>32</prepared-statement-cache-size>
<share-prepared-statements>true</share-prepared-statements>
</statement>
</datasource>
Any ideas as to what I'm doing wrong?
Turns out that in the Admin console the ${...} are not replaced by the actual value, but when I test the connection, it works.