Paolo Gambetti:

> I have this problem. If in my web application running in Tomcat there is a
> java thread running when i stop Tomcat with shutdown.bat or shutdown.sh
> tomcat process doesn't end and i have to kill it manually. How can i solve
> this problem? Is there anything to change in java threads code?
> thank you.

The JVM won't terminate until all non-daemon threads have ended. If your
webapp starts such a thread it has the responsibility to stop it when
needed. You can use a ServletContextListener to do this.

Regards
  mks

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to