commit how tomcat works in chapter6.
You should know about Lifecycle.