W E B S E R V I C E S
Listing 13 4, An example jboss web.xml descriptor for deploying a WAR to the www.starkinternational.com
virtual host
/
www.starkinternational.com
When such a WAR is deployed, the server console shows that the WAR is in fact deployed to
the www.starkinternational.com virtual host as seen by the Host=www category name in
the log statements.
Using Apache with the JBoss/Tomcat 4.x bundle
To enable the use of Apache as a front end web server that delegates servlet requests to a
JBoss/Tomcat bundle, you need to configure an appropriate connector in the
EmbeddedCatalinaSX MBean definition. For example, to configure the use of the Ajpv13
protocol connector with the Apache mod_jk module, you would use a configuration like that
given in Listing 13 5.
Listing 13 5, an example EmbeddedCatalinaSX MBean configuration that supports integration with
Apache using the Ajpv13 protocol connector.
name="DefaultDomain:service=EmbeddedCatalinaSX">
verbosityLevel = "trace" category = "org.jboss.web.localhost.Engine"/>
prefix = "localhost_access" suffix = ".log"
pattern = "common" directory = " ../server/default/log" />
port="8009" minProcessors="5" maxProcessors="75"
acceptCount="10" />
125
footer
Our partners:
PHP: Hypertext Preprocessor Cheap Web Hosting
JSP Web Hosting
Ontario Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Java Hosting
Cheapest Hosting
Visionwebhosting.net Business web hosting division of Vision Web Hosting Inc.. All rights reserved