users@glassfish.java.net

Re: web application for a particular virtual server only

From: <glassfish_at_javadesktop.org>
Date: Thu, 14 May 2009 07:18:56 PDT

> Use --virtualservers option while deploying using
> "asadmin deploy" command.
>

Thanks but it did not work.

I have two virtual servers defined. One is called "server" and the other "solr". 'server' points to domain_name_1 and solr points to domain_name_2.

I used command

    asadmin deploy --virtualservers solr hello.war

I can still access both http://domain_name_1/hello and http://domain_name_2/hello. It's not what I expected which is only http://domain_name_2/hello should be accessible.

Any idea?
-Kevin
[Message sent by forum member 'zhangyongjiang' (zhangyongjiang)]

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