From: Brian T. <to...@bi...> - 2003-06-24 17:58:49
|
> -----Original Message----- > From: Ionel Gardais [mailto:ion...@ge...] > Subject: Re: [JBoss-user] creating virtual host on the fly >=20 >=20 > Brian Topping wrote: >=20 > >Yes, read up on the contents of jboss-web.xml. > > > >-b =20 > > =20 > > > 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=20 > virtual host the war > should be deployed to. Example, to specify that a war should=20 > be deployed to the > www.jboss-store.org virtual host add the following=20 > virtual-host element: > <virtual-host>www.jboss-store.org</virtual-host> > --> >=20 > I understand this as : > "if a virtual-host is configured, this war will be deployed=20 > to the specified virtual-host (ie.=20 > www.jboss-store.org/<appname>). Else, the war will be=20 > deployed under the basic root server (ie.=20 > <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=3D22866, 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,=20 > does the virtual-host setting is still used ? Yes. -b |