-
1. Re: Spring 3 + JBoss AS7 + Static content out side WAR.
gangzh Jun 7, 2012 3:52 PM (in response to cparthas)This can be addressed by creating a JBoss Module. https://community.jboss.org/wiki/HowToPutAnExternalFileInTheClasspath#comment-10038.
-
2. Re: Spring 3 + JBoss AS7 + Static content out side WAR.
raydecampo Jun 7, 2012 4:59 PM (in response to cparthas)Some potential solutions:
1) Set up Apache in front of JBoss and let your static content live under the document root
2) Write a bean that is capable of accessing the files based on a configurable property. Configure the bean in Spring. Write a servlet that uses the bean to get the content and writes it directly to the response OutputStream.
3) Write a servlet that does the above without using Spring.
4) Set up Apache behind JBoss; write a servlet to get the static files from the Apache server as in 2) and 3). This allows you to have multiple JBoss servers without duplicating the content files.
5) Put the content files in a directory named static.war and deploy it as an exploded war. May or may not give you the necessary modification mechanics.
-
3. Re: Spring 3 + JBoss AS7 + Static content out side WAR.
rzd Jul 11, 2012 5:52 AM (in response to raydecampo)I'm not sure if this is intended to be used like that, but you can also simply put your files into the welcome-content directory and access them with http://<host>/<filename>