Tomcat Web Container configuration - JBOSS

Apache Tomcat (6.x) is a free and open-source Servlet (2.5) and JSP (2.1) Container Embedded in JBoss AS as deploy/jbossweb.sar JBoss Application Server configuration for Tomcat integration in each application are located in META-INF/jboss-web.xml

To enrich your career and become a JBoss professional, visit Tekslate, the global online training platform:" JBoss Training". This course will help you achieve excellence in this field.

Default JAAS Security Domain

Class Loading and Sharing

Session Management and Caching

Clustering and Load Balancing (in all config)

<jboss-web> <security-domain>java:/jaas/simple-security-domain</security-domain> </jboss-web> Tomcat’s server.xml Tomcat’s own configuration file: deploy/jbossweb.sar/server.xml Configures

Connectors (HTTP, HTTPS, AJP)

Security Realms (Inherits from JBoss)

Logging (Tomcat Service)

Valves (Request/Response interceptors)

Virtual Hosts (Name-based)

Web application contexts (Per-app configuration)

<Server> <!-- Optional listener which ensures correct init and shutdown of APR, and provides information if it is not installed --> <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /> <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html --> <Listener className="org.apache.catalina.core.JasperListener" />   <Service name="jboss.web"> <!-- A HTTP/1.1 Connector on port 8080 --> <Connector protocol="HTTP/1.1" port="8080" address="${jboss.bind.address}" connectionTimeout="20000" redirectPort="8443" /> ... <!-- A AJP 1.3 Connector on port 8009 --> <Connector protocol="AJP/1.3" port="8009" address="${jboss.bind.address}" redirectPort="8443" /> ... <Engine name="jboss.web" defaultHost="localhost"> ... <Realm className="" certificatePrincipal="" allRolesMode="authOnly" /> ... <Host name="localhost"> ... <Valve className="org.jboss.web.tomcat.service.jca.CachedConnectionValve" cachedConnectionManagerObjectName="jboss.jca:service=CachedConnectionManager" transactionManagerObjectName="jboss:service=TransactionManager" /> </Host> </Engine> </Service> </Server>

Tomcat’s web.xml Default web descriptor for all web apps deployers/jbossweb.deployer/web.xml Configures

Common Filters

Servlets for handling static content (DefaultServlet), JSPs, SSI, CGI scripts, invokers, etc.

Default session timeout

MIME Type mappings

Welcome file list: index.html, index.jsp, etc.

For an in-depth understanding on JBoss click on: