tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From afolli <foll...@libero.it>
Subject Stop tomcat on Startup
Date Fri, 25 Jul 2008 08:20:23 GMT


Hi All. I want to perform some checks on tomcat startup. If there is an
error, I want to stop tomcat. I have defined a servlet and defined it as
follow in the web.xml file in order to load it.

	<servlet>
		<description>
		</description>
		<display-name>
		StartUp</display-name>
		<servlet-name>StartUp</servlet-name>
		<servlet-class>
		com.webservice.global.StartUp</servlet-class>
		<load-on-startup>200</load-on-startup>
	</servlet>

	<servlet-mapping>
		<servlet-name>StartUp</servlet-name>
		<url-pattern>/StartUp</url-pattern>
	</servlet-mapping>

How can I stop the upcoming tomcat from the servlet?

Thanks,

  Alessandro
-- 
View this message in context: http://www.nabble.com/Stop-tomcat-on-Startup-tp18647289p18647289.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message