Chapter 10: Web Container Configuration and Jetty


Overview

Web applications get the most attention in the Java development arena. Just like the lead singer of the band, the most interactive component gets the brunt of the attention. It is where the end user meets your application and interacts with the back end. Web applications require a servlet/JSP container, often called a Web container. Geronimo provides two proven and certified Web containers: Apache Tomcat and Jetty. Geronimo allows you to run either Jetty or Tomcat simply by downloading the corresponding binary distribution. You can even run both Tomcat and Jetty at the same time with a custom build from source code!

The Geronimo extensions to the standard deployment descriptor, web.xml, allow you to leverage some of the unique extended features of Jetty/Tomcat components. They also allow you to:

  • Set up Geronimo security mappings

  • Set up naming and JNDI environment settings

  • Configure and deploy additional GBeans

This chapter explains how to select a Geronimo Web container to host your applications. It also describes the configuration of a Web application using the Geronimo-specific deployment plan, geronimo-web.xml. The different Web container-specific GBeans that you can configure for your Web application are covered. As with the first of two chapters on configuring Web containers, this chapter will primarily concentrate on the Web descriptor file as it pertains to Jetty and Jetty container GBeans. Tomcat configuration is discussed in detail in Chapter 11.




Professional Apache Geronimo
Professional Apache Geronimo (Wrox Professional Guides)
ISBN: 0471785431
EAN: 2147483647
Year: 2004
Pages: 148

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net