Details
-
Feature Request
-
Resolution: Won't Do
-
Major
-
None
-
10.1.0.CR1
-
None
Description
Best practice for loading of property files is via classloading.
Many applications try to load a custom properties file via class loading (e.g. Apache JSPWiki tries to load /jspwiki-custom.properties). With Tomcat, you simply drop property files into tomcat/lib.
For Wildfly, you have to create a module and add a jboss-dependency.xml to the application:
https://developer.jboss.org/wiki/HowToPutAnExternalFileInTheClasspath
Wildfly should have resource folder which by default should be added to the classpath of all applications, i.e. should be an implicit dependency. At least one should be able to switch this on in standalone.xml
The folder could be standalone/configuration.