Get in Touch

Course Outline

Tomcat Overview

  • Introduction to Apache
  • The Apache Software Foundation
  • The Jakarta Project
  • Tomcat Licensing
  • J2EE Technologies
  • Java Web Development
  • Servlet and JSP Containers

Java Web Applications

  • Overview of Servlets
  • Benefits of Servlets and their Lifecycle
  • JavaServer Pages (JSP)
  • JSP, JavaBeans, and JSP Tag Libraries
  • MVC Frameworks

Installing Tomcat

  • Downloading and installing Apache Tomcat
  • Acquiring a JVM, Tomcat, and Ant
  • Using the Windows installer
  • Java memory management and JVM tuning for performance

Tomcat Directories

  • Tomcat installation paths, directory structure, the bin directory, and common/shared directories
  • The conf, logs, server, work, temp, and webapps directories
  • Structure of the web application directory
  • Deploying HTML and JSP pages and web contexts
  • JSP pages and generated code
  • Deploying a web application

Configuring Tomcat

  • Tomcat configuration techniques
  • Tomcat's component architecture
  • Key elements: Server, Service, Connector, Engine, Host, Context, Realm, Valve, Listener, Loader, and Manager
  • The server.xml file
  • Modifying server.xml

Web Applications

  • Web application administration and deployment
  • Directory structure for web applications
  • The web.xml configuration file
  • Deployment descriptors
  • The web-app element
  • Mapping servlets to URLs
  • The resource-ref element
  • The env-entry element
  • The ejb-ref element
  • Example web.xml file
  • Deploying a web application
  • Tomcat's default conf/web.xml file
  • Tuning default JSP and static-content servlets

Tomcat Manager

  • Deploying and managing web applications via the Tomcat Manager
  • Starting and exploring the Tomcat Manager interface
  • Manager section details
  • Applications, Deployment, and Server Information
  • Creating a WAR file
  • Lab 4: Deploying a WAR file
  • Java Management Extensions (JMX) on Tomcat
  • Integrating Tomcat with Ant

Advanced Features

  • Leveraging advanced Tomcat features
  • Valves, including Access Log and Single Sign-on Valves
  • Remote Address Filter and Remote Host Filter
  • Request Dumper Valve
  • Configuring JNDI Resources
  • JNDI: Java Naming and Directory Interface, and defining a JNDI Resource
  • The environment and resource elements
  • Configuring a JavaMail Session
  • Global Resources

JDBC Connectivity

  • Configuring Tomcat to connect to a database
  • Overview of JDBC
  • JDBC Drivers
  • Database connections and connection pools
  • Downloading and installing MySQL
  • Configuring MySQL for Tomcat
  • Creating a database in MySQL
  • Downloading and deploying a JDBC driver
  • Defining a DataSource in Tomcat and doing so manually
  • Modifying the deployment descriptor
  • Detecting and closing leaked database connections

Tomcat Security

  • Security configuration on Tomcat
  • Security considerations
  • File system security and recommendations
  • Java Security Manager
  • Granting permissions to Java applications and reviewing Java permissions
  • Creating and adding custom policies
  • Enabling the Java Security Manager
  • Security Manager tips and Security Realms
  • Types of Realms and configuring a Realm
  • Users and Roles (authentication and authorization)
  • Creating a Data Source Realm
  • Password protection
  • FORM-based authentication
  • Configuring Tomcat for SSL
  • Requiring SSL in applications

Connecting

  • Connecting Tomcat to Apache
  • Reviewing Connectors
  • HTTP Connectors
  • Benefits of using a web server
  • Connector protocols
  • Configuring an AJP Connector
  • Downloading mod_jk
  • Creating the mod_jk.conf file
  • Starting Tomcat
  • Creating a Worker
  • Configuring httpd.conf
  • Testing the setup
  • Load balancing applications across multiple Tomcat instances
  • Challenges in load balancing
  • Server affinity via sticky sessions
  • Shared session storage
  • Replicated sessions via Tomcat clustering
  • Shared Hosting
  • Tomcat Virtual Hosting
  • Configuring Tomcat for virtual hosting as a stand-alone server
  • Configuring Tomcat for virtual hosting using jk2 or webapp
  • Configuring Tomcat as a stand-alone server
  • Configuring Tomcat with AJP
  • Separate JVM for each Host

Load Testing

  • JMeter Application
  • Load testing with JMeter
  • Installing and running JMeter
  • Creating a Test Plan
  • Configuring the Thread Group and adding tasks
  • Configuring HTTP Requests
  • Adding a Report Listener
  • Executing the Test Plan
  • Reviewing the results

Requirements

This course is tailored for web and application server administrators responsible for installing, configuring, operating, and tuning the Apache Tomcat Application Server.

To maximise the benefits of this Tomcat training course, you should possess a solid understanding of the fundamental principles of web and application server administration.

 21 Hours

Number of participants


Price per participant

Testimonials (6)

Provisional Upcoming Courses (Require 5+ participants)

Related Categories