Tomcat启动过程源代码分析

Bootstrap
init
– 初始化ClassLoader
– 实例化org.apache.catalina.startup.Catalina
– 赋值Bootstrap.catalinaDaemon

load
– 调用catalinaDaemon的load方法
– 使用Digester从XML文件中实例化Server对象
– Server.init()

start
– 调用Server.start()
– 注册CatalinaShutdownHook
– Runtime.getRuntime().addShutdownHook(shutdownHook);

stop

You Might Also Like
发表评论