Yes, what you are looking for is supported in GlassFish.
These blogs should help you get started:
http://blogs.sun.com/jluehe/entry/alternate_docroots_in_web_applications
http://blogs.sun.com/jluehe/entry/alternate_docroots_and_local_resource
Jan
P.S.: Please use webtier_at_glassfish.dev.java.net for any GlassFish
webtier related
questions going forward.
On 09/23/08 12:26 PM, glassfish_at_javadesktop.org wrote:
> The subject line wasn't long enough for the question to be as clear as it could have been in the forum....
>
> Anyways, what I'm looking for is something which acts like the Orion servers orion-web.xml tag virtual-directory inside of glassfish. An example is below:
>
> <virtual-directory real-path="/usr/local/realpath" virtual-path="/the/webdir" />
>
> This directory can exist outside the web application. This is handy when on a server with low file space with file shares for growing directories etc. Anyways, I need something similar to this in GF. I know I can probably do something similar with a Filter, but I don't want to unless necessary.
>
> Thanks,
>
> Wade
> [Message sent by forum member 'wadechandler' (wadechandler)]
>
> http://forums.java.net/jive/thread.jspa?messageID=301092
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>