Because I found the method named bindThread()
is invoked multiple times at class named StandardContext
in Tomcat 7 source code, especially in the method named startInternal()
. I do not understand why need to call this method multiple times.
Actually the bindThread()
is set the thread context classloader, but I don't konw why still use bindThread()
and unbindThread()
method pair in the startInternal()
invoke multiple times.