C H A P T E R  9

Embedding Tomcat

Previously, we learned how to install and use standalone Apache Tomcat server, and discussed some of Tomcat’s advanced features. In this chapter, we’ll see how we can use all of the Apache Tomcat features in another, independent Java application, by embedding Tomcat.

Testing Tomcat web applications automatically in-container has always been difficult, because the server where the web application is to be deployed must be installed and configured on the machine where the tests are running. When you needed to run a server from your unit and integration tests, usually the Jetty server was the only option – although your application runs in Tomcat in the production environment. With version 7, Tomcat now supports ...

Get Apache Tomcat 7 now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.