1 of 1 people found this helpful
In WildFly it is possible. WildFly’s undertow subsystem provides us a feature to configure the “handler” which can be used to achieve the same goal. please see:
How to store static contents outside WildFly installation and access them via Http ?
In JBossAS7/EAP6 you can try putting your static files inside the "$JBOSS_HOME/welcome-content" (suppose you placed a sile with name "hello.html" in that directory) then it can be accessed as
Also apart from writing your custom Servlet to accomplish the same in JBossAS7/EAP6 you can also try using the "WEB-INF/jboss-web.xml" with the following tag <
<jboss-web version="7.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jboss="http://www.jboss.com/xml/ns/javaee" xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee jboss-web_7_0.xsd"> <symbolic-linking-enabled>true</symbolic-linking-enabled> <overlay>/PATH/TO/myimages</overlay> </jboss-web>
For more information on this please see: https://issues.jboss.org/browse/JBPAPP6-1549
Jay SenSharma, thank you for the excelent answer.