2 Replies Latest reply on Apr 4, 2017 3:44 PM by faldric

    Use resources from module in web application

    faldric

      I have a very big JAR file containing images and other resources I want to expose via my web application. I decided to put it into a module so I can replace the resource JAR easily. So far everything is working fine and I can load the files in code easily. What I wanted to ask is: In a WAR its pretty easy to simply expose a folder of images under your web context if the JAR is in lib(WEB-INF/lib/{\*.jar}/META-INF/resources (Bistro!) ). Can I do something like this if the JAR is a module thats provided. Or do I have to write my own FileServlet?