How Tomcat Works