title: Wildfly 8.0 Passing parameters to standalone.xml file
body: <p>We are using wildfly 8.0 version for our legacy application. We are trying to pass datasource value as parameter in standalone.xml file but wildfly is throwing error as it's not recognizing $ sign.</p>
  
  <p>standalone.xml</p>
  
  <p>${DB_URL}
  
  <p>can anyone explain how to pass parameters in wildfly 8.0 server. We are starting our server as service.</p>
  
  <p>service wildfly start</p>
  
  <p>Here is snippet of standalone.xml</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;profile&gt;
   &lt;subsystem xmlns="urn:jboss:domain:logging:2.0"&gt;
    &lt;subsystem xmlns="urn:jboss:domain:datasources:2.0"&gt;
              &lt;datasource jta="false" jndi-name="java:jboss/postgresDSPC" pool-name="postgresDSPC" enabled="true" use-java-context="true" use-ccm="false"&gt;
                      &lt;connection-url&gt;${DB_URL}&lt;/connection-url&gt;
                      &lt;driver&gt;postgresql&lt;/driver&gt;
                      &lt;pool&gt;
                          &lt;min-pool-size&gt;2&lt;/min-pool-size&gt;
                          &lt;max-pool-size&gt;20&lt;/max-pool-size&gt;
                      &lt;/pool&gt;
                      &lt;security&gt;
                          &lt;user-name&gt;username&lt;/user-name&gt;
                          &lt;password&gt;password&lt;/password&gt;
                      &lt;/security&gt;
                      &lt;statement&gt;
                          &lt;prepared-statement-cache-size&gt;50&lt;/prepared-statement-cache-size&gt;
                          &lt;share-prepared-statements&gt;false&lt;/share-prepared-statements&gt;
                      &lt;/statement&gt;
                &lt;/datasource&gt;
     &lt;/subsystem&gt;
    &lt;subsystem xmlns="urn:jboss:domain:weld:2.0"/&gt;
  &lt;/profile&gt;             
  </code></pre>
  
  <p>Here is the  value I see when I read using jboss-cli</p>
  
  <pre class="lang-xml prettyprint-override"><code>  "connection-url" =&gt; {
                  "type" =&gt; STRING,
                  "description" =&gt; "The JDBC driver connection URL",
                  "expressions-allowed" =&gt; true,
                  "nillable" =&gt; false,
                  "min-length" =&gt; 1L,
                  "max-length" =&gt; 2147483647L,
                  "access-type" =&gt; "read-write",
                  "storage" =&gt; "configuration",
                  "restart-required" =&gt; "no-services"
              },
  </code></pre>
  
  <p>Thanks
  Rakesh</p>