-
1. Re: Do JBoss EAP 6 and WildFly support Virtual Directories?
jaysensharma Nov 22, 2015 10:23 PM (in response to j.swiderski)1 of 1 people found this helpfulIn 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 ?
http://middlewaremagic.com/jboss/?p=2718
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
http://localhost:8080/hello.html
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 <
symbolic-linking-enabled
>Example:
<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
-
2. Re: Do JBoss EAP 6 and WildFly support Virtual Directories?
j.swiderski Nov 23, 2015 6:53 PM (in response to jaysensharma)Hi,
Jay SenSharma, thank you for the excelent answer.
Regards,
James