ApacheCon NA 2010 Session
Quickstart guide to embedding Tomcat 7
Tomcat has always been embeddable but with Tomcat 7 it has been much simpler. This presentation will show you how you can embed Tomcat in your application in just five - may need to edit this figure :) - lines of code. The remainder of the presentation will demonstrate how this embedded instance can be configured and will cover standard web.xml configuration, how to modify settings normally configured in server.xml and integrating with custom components such as a custom Realm.