How to use properties files in JBoss EAP 6 ?

Solution Unverified - Updated -


  • We would like to set some values in our configuration via a properties file. Is this possible in EAP 6 (like in previous JBoss releases)?

  • In former JBoss versions we heavily used the "-P" option to pass a system properties file to the server configuration. Does this only work in standalone mode?

  • How do I specify multiple properties files at startup?

  • Can standalone.xml refer to a custom system property ?
  • How to use external path for properties file?
  • What is the replacement of jboss-service.xml in Jboss eap 6.3.3 if I want to specify global property ?

  • I am using JBoss FSW6.2.1 with EAP 6.4. I have defined resource adapter in my standalone-ha.xml at standalone-ha.xml. Now, in the resource adapter configuration, I am using attribute. I want its value to come from a property file, say My question is:

  1. Where should I place this file
  2. What configuration and steps are required so that attribute will pick up the value from the property file
  • We are trying to define a variable in JVM arguements and JBoss keeps complaining unable to resolve . We ended up hardcoding the value . Could you please let us know whats the best way of defining a variable so that we can pass values to variables while starting server instance.


  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
    • 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In