tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Crowther <Peter.Crowt...@melandra.com>
Subject RE: Stop tomcat on Startup
Date Fri, 25 Jul 2008 08:23:02 GMT
How hard a stop do you want?  The "Very Big Crowbar" would be a System.exit(1)!

                - Peter

> -----Original Message-----
> From: afolli [mailto:follows@libero.it]
> Sent: 25 July 2008 09:20
> To: users@tomcat.apache.org
> Subject: Stop tomcat on Startup
>
>
>
> 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
>
>

---------------------------------------------------------------------
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