Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-6931

add implicit module dependency to configuration directory

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Won't Do
    • Major
    • None
    • 10.1.0.CR1
    • Class Loading
    • 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.

      Attachments

        Activity

          People

            dlloyd@redhat.com David Lloyd
            Gerald.Rueck@kreditwerk.de Juergen Weber (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: