title: Application/Deployment specific properties with JAX-RS and WildFly
body: <p>I am used to Spring on Tomcat/Jetty and I now work on an existing JAX-RS project running on WildFly (RESTEasy).</p>
  
  <p>I would like to know where do the application/deployment property files go on WildFly, standalone/configuration/myapp.properties?</p>
  
  <p>Then how does the application load them? I tried in our class extending javax.ws.rs.core.Application:</p>
  
  <pre><code>@javax.ws.rs.ApplicationPath("")
  public class ApplicationConfig extends Application {
  
      @Override
      public Map&lt;String, Object&gt; getProperties() {
          System.out.println("&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; get properties");
          // I added this method but nothing is printed...
      }
  
      @Override
      public Set&lt;Class&lt;?&gt;&gt; getClasses() {
          System.out.println("&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; get classes");
          // This is printed
          ...
          // classes are loaded correctly
      }
  }
  </code></pre>
  
  <p>Then how would I access the properties in the controllers? By the way we don't use dependency injection.  </p>
  
  <p>Thanks!</p>