6 Replies Latest reply on May 22, 2018 11:52 AM by Michael Goytia

    Reading a configuration file

    Adrián Córdoba Newbie

      Hello, there!

      I'm writing a web application, and planning to deploy it on JBoss AS 7.1.

      My application need to read some configuration properties from a file.

      Where should I put this configurations file within JBoss home directory?

      I'm using Maven and put the configuration file on "src/main/resources". So, the file is placed in "JBOSS_HOME]/standalone/deployments/[MY_APPLICATION].war/WEB-INF/classes/" when I run the application, but it cannot get the configuration properties.

      The application can only read the configuration properties if I put the file in "JBOSS_HOME]/bin" directory. Is this the right place?


      Thank you, in advance.



      [Adrián E. Córdoba]