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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to