dev@glassfish.java.net

Re: HEADS-UP: default-web-module optimization

From: Bill Shannon <bill.shannon_at_sun.com>
Date: Wed, 30 Aug 2006 13:04:45 -0700

Jan Luehe wrote:
>
>
> Bill Shannon wrote On 08/30/06 00:18,:
>
>> It seems weird that a web app would be deployed both with a regular
>> context root ("/asadmin") and with a context root of "/". Is that
>> just a side effect of the current implementation? Wouldn't it be
>> more natural to deploy a web app once, as the default web app, at
>> the context root of "/"?
>
>
>
> The current impl deploys a webapp that is referenced as a
> default-web-app twice: once at its orginal context root ("/asadmin"),
> and a *copy* of it at "/".
>
> The proposed changes will deploy it only once, but will have it
> serve both "/" and "/asadmin".

I guess my question is, what's the motivation for having a single
web app serve two different context roots? Wouldn't it be more
common for a special default web app to serve "/" and other web
apps (if any) to serve other context roots?