Get in Touch
 Duration 21 hours

Course Outline

Tomcat Overview 

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

Java Web Applications

  • Introduction to Servlets
  • Benefits of Servlets and their Lifecycle
  • JavaServer Pages
  • JSP, JavaBeans, and JSP Tag Libraries
  • MVC Frameworks

Installing Tomcat

  • Downloading and Installing Apache Tomcat
  • Installing a JVM, downloading Tomcat, and installing Ant
  • Windows Installer
  • Java memory management and JVM tuning for performance

Tomcat Directories

  • Tomcat Installation Paths, Directory Structure, bin Directory, Common and shared Directories
  • conf Directory, logs Directory, server directory, work Directory, temp Directory, webapps Directory
  • Structure of the Web Application Directory
  • Deploying HTML and JSP Pages and Web Context
  • JSP Page and Generated Code
  • Deploying a Web Application

Configuring Tomcat

  • Tomcat Configuration and Techniques
  • Tomcat's Component Architecture
  • <Server> Element, <Service> Element, <Connector> Element, <Engine> Element, <Host> Element, <Context> Element, <Realm> Element, <Valve> Element, <Listener> Element, <Loader> Element, <Manager> Element
  • server.xml File
  • Modifying server.xml

Web Applications

  • Web Application Administration and Deployment
  • Directory Structure of a Web App
  • web.xml configuration file
  • Deployment Descriptors
  • <web-app></web-app> Element
  • Mapping a Servlet to a URL
  • <resource-ref></resource-ref> Element
  • <env-entry></env-entry> Element
  • <ejb-ref></ejb-ref> Element
  • Sample 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 the Tomcat Manager and exploring its interface
  • Examining the Manager Section
  • Applications, Deployment, Server Information
  • Creating a WAR File
  • Lab 4: Deploying a WAR File
  • Java Management Extensions (JMX) on Tomcat
  • Tomcat integration with Ant

Advanced Features

  • Utilizing Advanced Tomcat Features
  • Valves, Access Log Valve, Single Sign-on Valve
  • Remote Address Filter and Remote Host Filter
  • Request Dumper Valve
  • Configuring JNDI Resources
  • JNDI: Java Naming and Directory Interface and Defining a JNDI Resource
  • <environment></environment> Element and <resource></resource> Element
  • Configuring a JavaMail Session
  • Global Resources

JDBC Connectivity

  • Configuring Tomcat for Database Connectivity
  • Overview of JDBC
  • JDBC Drivers
  • Connecting to a Database and Connection Pools
  • Download and Install MySQL
  • Configure MySQL for Tomcat
  • Create a Database in MySQL
  • Download and Deploy a JDBC Driver
  • Defining a DataSource in Tomcat and Manual Data Source Definition
  • Modifying the Deployment Descriptor
  • Detecting and closing leaked database connections

Tomcat Security

  • Security in Tomcat and Configuration
  • Security Considerations
  • File System Security and Filesystem Recommendations
  • Java Security Manager
  • Granting Permissions to Java Apps and reviewing Java Permissions
  • Creating and Adding Custom Policies
  • Enabling the Java Security Manager
  • Security Manager Tips and Security Realms
  • Reviewing Different 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
  • Exploring Connectors
  • HTTP Connectors
  • Benefits of Using a Web Server
  • Connector Protocols
  • Configuring an AJP Connector
  • Download mod_jk
  • Create the mod_jk.conf file
  • Start Tomcat
  • Create a Worker
  • Configure httpd.conf
  • Test the Setup
  • Load balancing applications across multiple Tomcat instances
  • Common issues with load balancing
  • Server affinity via sticky sessions
  • Shared session storage
  • Replicated sessions via Tomcat clustering
  • Shared Hosting
  • Tomcat Virtual Hosting
  • Configuring Tomcat to enable virtual hosting as a stand-alone server
  • Configuring Tomcat to enable virtual hosting using jk2 or webapp.
  • Configuring Tomcat as Stand-alone
  • Configuring Tomcat with AJP
  • Separate JVM for Each Host

Load Testing

  • JMeter Application
  • Load Testing with JMeter
  • Install and run JMeter
  • Creating a Test Plan
  • Configuring the Thread Group and adding a task
  • Configuring the HTTP Request
  • Adding a Report Listener
  • Running the Test Plan
  • Viewing 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 maximize the benefits of this Tomcat training, you should have a foundational understanding of web and application server administration principles.

Number of participants


Price per participant

Testimonials (6)

Upcoming Courses

Related Categories