RE: stopping a tomcat web application

2006-09-11 Thread asaf.lahav
unday, September 10, 2006 3:31 PM To: Tomcat Users List Subject: Re: stopping a tomcat web application http://www.docjar.com/docs/api/org/apache/catalina/startup/Bootstrap.html start() method for starting Catalina stop() method for stopping Catalina stopServer() which will stop Tomcat H

Re: stopping a tomcat web application

2006-09-10 Thread Martin Gainty
. - Original Message - From: "asaf.lahav" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" Sent: Saturday, September 09, 2006 12:41 AM Subject: RE: stopping a tomcat web application > Does anyone have a code sample that performs a start and/or

RE: stopping a tomcat web application

2006-09-08 Thread asaf.lahav
: stopping a tomcat web application Look at http://tomcat.apache.org/tomcat-5.5-doc/monitoring.html and use JMX. Regards Peter Am 04.09.2006 um 11:50 schrieb asaf.lahav: > Isn't there a way to stop a tomcat web application using code? > Tomcat provides an administration interface wh

Re: stopping a tomcat web application

2006-09-06 Thread Santosh Puranshettiwar
You mean you wish to do it without using the Tomcat Manger? asaf.lahav wrote: I did... It doesn't answer my question... -Original Message- From: Mikolaj Rydzewski [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 05, 2006 1:33 PM To: Tomcat Users List Subject: Re: stopping a t

RE: stopping a tomcat web application

2006-09-05 Thread asaf.lahav
I did... It doesn't answer my question... -Original Message- From: Mikolaj Rydzewski [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 05, 2006 1:33 PM To: Tomcat Users List Subject: Re: stopping a tomcat web application asaf.lahav wrote: > Wouldn't it be possible to u

Re: stopping a tomcat web application

2006-09-05 Thread Mikolaj Rydzewski
asaf.lahav wrote: Wouldn't it be possible to use JMX in the servletContextListener? Is there any alternative? Read Peter Crowther's post. -- Mikolaj Rydzewski <[EMAIL PROTECTED]>http://ceti.pl/~miki/ PGP KeyID: 8b12ab02 There are three kinds of people: men,

RE: stopping a tomcat web application

2006-09-05 Thread asaf.lahav
Wouldn't it be possible to use JMX in the servletContextListener? Is there any alternative? -Original Message- From: Mikolaj Rydzewski [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 05, 2006 10:13 AM To: Tomcat Users List Subject: Re: stopping a tomcat web application asaf.

Re: stopping a tomcat web application

2006-09-05 Thread Mikolaj Rydzewski
asaf.lahav wrote: I'm looking for java code to stop a specific web application running on my tomcat. Not the entire tomcat. You can stop a tomcat webapp using JMX and MBeans. But your original question was how to stop webapp from ServletContextListener during its startup. -- Mikolaj Rydze

RE: stopping a tomcat web application

2006-09-05 Thread asaf.lahav
I'm looking for java code to stop a specific web application running on my tomcat. Not the entire tomcat. -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Monday, September 04, 2006 3:02 PM To: Tomcat Users List Subject: Re: stopping a tomcat web application

RE: stopping a tomcat web application

2006-09-04 Thread Peter Crowther
> From: Martin Gainty [mailto:[EMAIL PROTECTED] > You are executing java class > org.apache.catalina.startup.Bootstrap with the 'stop' option Martin - like your previous suggestion, that stops the entire container, not the single webapp. JMX would appear to be the way to go to stop a webapp, bu

Re: stopping a tomcat web application

2006-09-04 Thread Martin Gainty
nal Message - From: "asaf.lahav" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" Sent: Monday, September 04, 2006 5:50 AM Subject: RE: stopping a tomcat web application > Isn't there a way to stop a tomcat web application using code? > Tomcat provides

Re: stopping a tomcat web application

2006-09-04 Thread Peter Rossbach
cific web applications. Can anyone point me to the web application management code? -Original Message- From: Mikolaj Rydzewski [mailto:[EMAIL PROTECTED] Sent: Sunday, September 03, 2006 11:04 PM To: Tomcat Users List Subject: Re: stopping a tomcat web application asaf.lahav wrote: I would

RE: stopping a tomcat web application

2006-09-04 Thread asaf.lahav
ailto:[EMAIL PROTECTED] Sent: Sunday, September 03, 2006 11:04 PM To: Tomcat Users List Subject: Re: stopping a tomcat web application asaf.lahav wrote: > I would like to know whether and how it's possible to stop the web > application from continuing the start sequence in case something goe

Re: stopping a tomcat web application

2006-09-03 Thread Mikolaj Rydzewski
asaf.lahav wrote: I would like to know whether and how it's possible to stop the web application from continuing the start sequence in case something goes wrong in the initialize sequence? I don't know how this compares to specification, but throwing an exception in contextInitialized() stops

Re: stopping a tomcat web application

2006-09-03 Thread Leon Rosenberg
Hmm, I think it's not possible from tomcats view, but you could have a static class, where you store your status, like class Status{ public static boolean continueLoading(){ } } in your servlet you can check whether loading is alowed : public class MyServlet extends HttpServlet{ public void