users@glassfish.java.net

Re: Set virtual server default web module via descriptor?

From: Shing Wai Chan <shing.wai.chan_at_oracle.com>
Date: Tue, 31 May 2011 15:45:19 -0700

You can try to use the context-root element in sun-web.xml.
Shing Wai Chan

On 5/31/11 2:18 PM, Comerford, Sean wrote:
> I have an ear containing a webapp that I want to be the default web
> module for my GF 2.1 virtual server.
>
> Is there a way via the deployment descriptors (maybe sun-web.xml) to
> declare my app as the default web module?
>
> I know I can do this via asadmin / the admin console but I'm wondering
> if there's a way my app can declare itself the default.
>
> --
> Sean Comerford, Staff Engineer
> ESPN.com Site Architecture Group
> Office: 860.766.6454 Cell: 860.329.5842