]
Juergen Weber resolved WFLY-6931.
---------------------------------
Resolution: Won't Fix
One can use
<subsystem xmlns="urn:jboss:domain:ee:1.2">
<global-modules>
add implicit module dependency to configuration directory
---------------------------------------------------------
Key: WFLY-6931
URL:
https://issues.jboss.org/browse/WFLY-6931
Project: WildFly
Issue Type: Feature Request
Components: Class Loading
Affects Versions: 10.1.0.CR1
Reporter: Juergen Weber
Assignee: David Lloyd
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.