> -----Original Message-----
> From: Ionel Gardais [mailto:[EMAIL PROTECTED]
> Subject: Re: [JBoss-user] creating virtual host on the fly
> 
> 
> Brian Topping wrote:
> 
> >Yes, read up on the contents of jboss-web.xml.
> >
> >-b  
> >  
> >
>  From jboss-web_3_2.dtd :

I would read the pay-for docs, they are very complete.  You've already spent
more than $10 in time trying to figure this out... :-)

> <!-- The virtual-host element allows one to specify which 
> virtual host the war
> should be deployed to. Example, to specify that a war should 
> be deployed to the
> www.jboss-store.org virtual host add the following 
> virtual-host element:
>    <virtual-host>www.jboss-store.org</virtual-host>
> -->
> 
> I understand this as :
> "if a virtual-host is configured, this war will be deployed 
> to the specified virtual-host (ie. 
> www.jboss-store.org/<appname>). Else, the war will be 
> deployed under the basic root server (ie. 
> <computername>:<port>/<appname>)"

This is correct for 3.0.x.  It deploys at server root if you specify "/" as
context root in jboss-web.xml along with the host that you want to deploy on.


There's been some changes (for the better, IMHO) to 3.2 and I'm still
squeaking by on the out-of-date 3.0.4 docs.  But basically, you can figure
out the element structure that the deployer expects in the
jboss-tomcat.sar/META-INF/jboss-service.xml through the source in the file
catalina/src/main/org/jboss/web/catalina/ConfigHandler.java.  I'd give you a
full URL through http://sourceforge.net/cvs/?group_id=22866, but the thing is
down again.

Keep your eye on http://tinyurl.com/f5aa for it to be updated to 3.2, then
get it.  It's really worth your time, I read it for reference about once
every few days.  If I added up the value of the time I saved, it's free
money.

> Another question is : if this war is deployed inside an ear, 
> does the virtual-host setting is still used ?

Yes.

-b


-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to