Here's something I haven't been able to figure out by browsing the
jboss & tomcat documentation: is it possible to serve static content
from outside an EAR file?

For example, if I have an app as an ear file and then N megabytes of
images in a directory tree, is there any way (with jboss+tomcat or
jboss+jetty) to map requests to the files in the directory tree? You
can map requests to different servlets in the web.xml file, but what I
would want is the ability to map some requests to a filesystem
directory. Any way to do this?

Of course, I could have a servlet which reads the files and then
serves them out with the appropriate mime type, but that would
probably be very inefficient. I *could* of course package everything
in one gargantuan EAR file, but that does not seem like a good idea
either.

A final option would be to open up the EAR file into separate files at
deploy time and then symlink the static content tree to the web deploy
directory, but the jboss app deployer does not work with directories,
it wants war/ear files.

Any ideas?

//Petri


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to