W E B I N T E G R A T I O N
Chapter
13
13. Web
Integration
How to Serve Web Content by Scott Stark and Jan Bartel
JBoss supports embedding of web containers through abstract MBean. Two popular servlet
containers have embedded services bundled with JBoss. The Jetty 4.x servlet container is
included as the default servlet container in the standard JBoss 3.0 distribution. A separate
JBoss/Tomcat 4.x distribution includes an embedded version of Tomcat 4.0.3. This chapter
provides the basic configuration details of the Jetty and Tomcat services. For the full details
of these services as well as the servlet container integration interface see the full JBoss 3.0
documentation.
Configuring Jetty
What is Jetty
Jetty is a pure Java web server and servlet container compliant to the HTTP1.1, Servlet 2.3
& JSP 1.2 specifications developed by
Mort Bay Consulting
(http://www.mortbay.com)
. It has been designed to be fast, lightweight, extensible, and
embeddable. This section discusses the embedding of Jetty within JBoss, but for more
general information on Jetty, visit the
Jetty website (http://jetty.mortbay.org).
Integration with JBoss
Jetty is fully integrated with the JBoss environment in terms of:
In JVM optimized calls.
The overhead of RMI is avoided when the servlet and EJB containers are run in the same
JVM.
Implementing a web container service
The Jetty integration extends the
org.jboss.web.AbstractWebContainer
class to
enable Jetty to conform to the standard JBoss web container service interface. This allows
the Jetty Service to be stopped and restarted, to hot deploy webapps and for those
Page 110 of 140
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