This content has been marked as final.
Show 1 reply
-
1. Re: One war/ear, multiple virtual hosts
cstura Jun 14, 2003 5:44 AM (in response to n_ton)ok I can help you out here.
jboss can't do this with the deployment descriptors but if you use tomcat bundled with jboss you can do this by configuring the deploy/jbossweb-tomcat/META-INF/jboss-service.xml file.
set up a context defining your virtual host in tomcat.
and then add
mydevelopment site
in your deployment descriptor include the production site url. and automatically your war will be deployed to both hosts. even if the production url doesn't exist in the dev environment.