Pro Apache Tomcat 6 BY Matthew Moodie & Kunal Mittal

Pro Apache Tomcat 6 BY Matthew Moodie
Pro Apache Tomcat 6 BY Matthew Moodie

Book Details:
Book Title: Pro Apache Tomcat 6
Author: Matthew Moodie, Kunal Mittal
Paperback: 325 Pages
Publisher: Apress
Year: 23/March/2007
Edition: 1st
Language: English
ISBN-10: 1590597850
ISBN-13: 978-1590597859
Download: PDF (3.89 MB)
Buy @ Amazon

CONTENTS:
CHAPTER 1: Introducing Tomcat
  • Understanding the Web Today
  • Looking Beyond CGI
  • Introducing Java on the Web
  • Adding to Servlets: JavaServer Pages
  • Introducing Servlet Containers
  • Looking at Tomcat
  • What's New in Tomcat 6
  • Understanding Tomcat's Architecture
  • Top-Level Components
  • The Connector Components
  • The Container Components
  • The Nested Components
  • Summary


CHAPTER 2: Installing Tomcat
  • Installing Java
  • Installing Java on Windows
  • Installing Java on Linux
  • Installing Tomcat
  • Installing Tomcat on Windows Using the Installer
  • Installing Tomcat on Windows Using the Zipped File
  • Installing Tomcat on Linux or Mac OS
  • Viewing the Default Installation
  • Running Tomcat with the Server Option
  • Installing Ant
  • Installing Tomcat from Source
  • Troubleshooting and Tips
  • The Tomcat Window Disappears
  • The Port Number Is in Use
  • Summary


CHAPTER 3: Examining Tomcat's Directories
  • Looking at CATALINA_HOME
  • The bin Directory
  • The conf Directory
  • The logs Directory
  • The lib Directory
  • The temp Directory
  • The webapps Directory
  • The work Directory
  • Understanding Web Application Structure
  • Web Application Context
  • The WEB-INF Directory
  • The META-INF Directory
  • Summary


CHAPTER 4: Working with Tomcat's Configuration Files
  • Examining Tomcat’s Configuration Files
  • Using catalina.policy for Access Control
  • Using catalina.properties to Configure Tomcat's Class Loaders
  • Using server.xml to Configure Tomcat
  • Configuring a Server
  • Configuring Global Naming Resources
  • Configuring a Service
  • Configuring a Connector
  • Configuring an Engine
  • Tomcat Logging
  • Configuring a Realm
  • Configuring a Host
  • Configuring a Valve
  • Configuring a Listener
  • Configuring an Alias
  • Understanding Authentication and the tomcat-users. xml File
  • Configuring Web Application Defaults with web.xml
  • Default Servlet Definitions
  • Matching URLs: Servlet Mappings
  • Configuring Session Timeout
  • Configuring MIME Mappings
  • Configuring Welcome Files
  • Changing Service Options on Windows
  • Summary


CHAPTER 5: Administering Web Applications
  • Configuring Contexts
  • Configuring Default Contexts
  • The Context Element
  • Configuring a Parameter
  • Configuring a Resource Link
  • Examining a Web Application
  • Mapping URLs to Resources
  • Examining the WEB-INF Folder
  • Examining the web.xml File
  • <distributable>
  • <context-param>
  • <filter>
  • <filter-mapping>
  • <servlet>
  • <servlet-mapping>
  • <session-config>
  • <mime-mapping>
  • <welcome-file-list>
  • <error-page>
  • <resource-env-ref>
  • <resource-ref>
  • <security-constraint>
  • <login-config>
  • <security-role>
  • Summary


CHAPTER 6: Using Tomcat's Administration Tools
  • Using the Manager Application
  • Setting Up the Manager Application
  • Configuring the Manager Application
  • Using the Manager Application
  • Troubleshooting
  • Managing Applications with Ant
  • Using the Tomcat Administration Tool
  • Summary


CHAPTER 7: Configuring Tomcat
  • Using Valves to Intercept User Requests
  • Standard Valves
  • Configuring User Sessions
  • Configuring a Session Manager
  • Configuring a Cluster
  • Summary


CHAPTER 8: Understanding Tomcat's Class Loaders
  • Examining the Standard Java SE Class Loaders
  • The Bootstrap Class Loader
  • The Extension Class Loader
  • The System Class Loader
  • The Delegation Model
  • The Endorsed Standards Override Mechanism
  • Understanding Class Loader Attributes
  • Loading Classes on Demand
  • Class Caching
  • Separate Namespaces
  • Creating a Custom Class Loader
  • Understanding Security and Class Loaders
  • Class Loader Delegation
  • Core Class Restriction
  • Separate Class Loader Namespaces
  • Security Manager
  • Understanding Tomcat and Class Loaders
  • Tomcat and the System Class Loader
  • Tomcat’s Common Class Loader
  • Tomcat’s Web Application Class Loader
  • Revisiting Class Loader Order
  • Dynamic Class Reloading
  • Avoiding Class Loader Pitfalls
  • Packages Split Among Different Class Loaders
  • Singletons
  • Summary


CHAPTER 9: Using Tomcat's Connectors
  • Using the HTTP Connector
  • Configuring the HTTP/1.1 Connector
  • Configuring SSL on Tomcat
  • Working with Keystores
  • Running Tomcat Behind a Proxy Server
  • Using the AJP Connector
  • The Apache JServ Protocol
  • Worker Implementations
  • Integrating Tomcat with Apache 1.3 Using mod_jk
  • Integrating Tomcat with IIS
  • Configuring Distributed Networks with Tomcat
  • Understanding Tomcat Load Balancing
  • Preparing for Load Balancing
  • The Workers
  • Configuring Apache 1.3 for Load Balancing
  • Configuring Tomcat for Load Balancing
  • Testing the Load Balancing Behavior
  • Summary


CHAPTER 10: Connecting to Databases Using JDBC
  • Introducing SQL
  • Introducing JDBC
  • Running Basic JDBC Operations
  • Which JDBC Version?
  • Examining JDBC Driver Types
  • Database Connection Pooling
  • Using Tomcat and JDBC
  • Providing JDBC Data Sources in Tomcat
  • Configuring JNDI JDBC Resources
  • Using the Resource and ResourceParams Elements
  • Transactions and Distributed Transactions Support
  • Testing JNDI Resource Configuration
  • Creating the MySQL Test Database
  • Setting Up the Read-Only User
  • Adding the JDBC JNDI Resource to the Server
  • Using JNDI to Look Up a Data Source
  • Summary


CHAPTER 11: Working with User Authentication
  • Looking at Realms
  • Understanding Container-Managed Security
  • Storing a Digested Password
  • Configuring Realms
  • Configuring a File-Based Realm
  • Configuring a User Database Realm
  • Protecting a Resource with a Realm
  • Configuring a JDBC Realm
  • Configuring JNDI Realms
  • Summary


CHAPTER 12: Securing Tomcat
  • Securing the Windows File System
  • Controlling Users, Groups, and Owners in Windows
  • Assigning Permissions in Windows
  • Planning Security Permissions in Windows
  • Configuring File Permissions in Windows
  • Securing the Unix File System
  • Controlling Users, Groups, and Owners in Unix
  • Assigning Permissions in Unix
  • Planning Security Permissions
  • Configuring File Permissions in Unix
  • Examining General Tomcat Security Principles
  • Retaining Tomcat's Administration Tools
  • Read-Only webapps Directory
  • Securing Your Files
  • Knowing If Your Security Has Been Violated
  • Read-Only File Systems
  • Securing Tomcat's Default Configuration
  • Securing Tomcat's Permissions
  • The Java Security Manager
  • Using the Security Manager with Tomcat
  • Tomcat's Policy File
  • Recommended Security Manager Practices
  • Using Security Realms
  • Adding Settings to web.xml
  • Choosing Form-Based Authentication
  • Using Custom Login and Error Pages
  • Using the Secure Sockets Layer
  • Installing JSSE
  • Preparing the Certificate Keystore
  • Installing a Certificate from a Certificate Authority
  • Importing the Certificate
  • Protecting Resources with SSL
  • Configuring the SSL Connector
  • Using SSL with the Apache Web Server
  • Summary


CHAPTER 13: Implementing Shared Tomcat Hosting
  • Examining Virtual Hosting
  • IP-Based Virtual Hosting
  • Name-Based Virtual Hosting
  • Implementing Virtual Hosting with Tomcat
  • Creating an Example Configuration
  • Setting Up the Virtual Hosting
  • Testing the Virtual Hosting
  • Implementing Virtual Hosting with Apache and Tomcat
  • Setting a JVM for Each Virtual Host
  • Summary


CHAPTER 14: Testing Tomcat's Performance
  • Preparing for Load Testing
  • Configuring the Java Heap Size
  • Configuring Tomcat's Connectors
  • Configuring Application Sessions
  • Altering Tomcat's Deployment Architecture
  • Working with a Developer's Code
  • Load Testing with JMeter
  • Installing and Running JMeter
  • Making and Understanding Test Plans
  • Examining JMeter's Features
  • Interpreting Test Results
  • Examining the Mean
  • Examining the Standard Deviation
  • Summary


APPENDIX:
Installing MySQL
Installing MySQL on Windows
Installing MySQL on Linux and Unix
Creating a User for MySQL
Installing MySQL from the RPM Package
Installing MySQL from Source
Working with MySQL
Resources
INDEX

About Books:
60-80% of Java developers require only simple Java Web applications. For these advanced, specialized users, the optimal deployment tool for simple Java-based Web applications is the open source Tomcat Web application server, which has graduated from Jakarta to become a topline Apache project, Apache Tomcat. Pro Apache Tomcat 6 fills an important need in the very large, very under-served Tomcat tech market. Unlike beginner manuals, this book wastes no time on Java or JSP introductions, and discusses JSP and Java code minimally. Instead, it gets right to the point and teaches you to use the newest Tomcat, version 6.

About Author:
Matthew Moodie was a technical and developmental editor for two and a half years, and served as editor for Beginning JSP 2: From Novice to Professional and Foundations of JSP Design Patterns, both published by Apress.

Comments