users@glassfish.java.net

Re: Virtual Servers & Listeners

From: <glassfish_at_javadesktop.org>
Date: Tue, 11 Sep 2007 19:05:05 PDT

Tomcat's <Host> corresponds to GlassFish's <virtual-server>.

From the above link:

  You can nest one or more Context elements inside this Host element,
  each representing a different web application associated with this
  virtual host.

You can accomplish the same in GlassFish, by specifying the "--virtualservers <virtual_servers>" option at the "asadmin deploy" command line, or when you deploy a webapp via the admingui.
If you don't specify this option, the webapp will be deployed onto all virtual servers (except the admin related virtual server).

The virtual servers to which a webapp has been deployed are listed as the value of the "virtual-servers" attribute of the <application-ref> element corresonding to the webapp in your domain.xml.

See

  http://blogs.sun.com/jluehe/entry/presentation_on_virtual_hosting_features
  http://blogs.sun.com/jluehe/entry/virtual_hosting_features_in_glassfish

for additional info on virtual servers in GlassFish.

Jan
[Message sent by forum member 'jluehe' (jluehe)]

http://forums.java.net/jive/thread.jspa?messageID=234969