3 Replies Latest reply on Mar 3, 2012 2:40 PM by Wolf-Dieter Fink

    JBoss 7.1 - use of system properties in configuration file?

    albremer Newbie

      I'm trying to configure a datasource for JBoss 7.1 by using system properties:


      <datasource jndi-name="java:/myapp/datasource/jdbc" pool-name="MyAppJdbcPool" enabled="true" use-java-context="true">










      Unfortunately this does not work as JBoss does not replace the properties. On startup I get:


      JBAS014775:    New missing/unsatisfied dependencies:

            service jboss.jdbc-driver.${myapp_datasource_jdbc_driver} (missing) dependents: [service jboss.data-source.java:/myapp/datasource/jdbc]



      Is there any way to accomplish this? The idea behind it is that all our developers use the same configuration file and just a custom properties file to set their configuration.