tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Could a bad servlet initializtion stop tomcat?
Date Fri, 03 Nov 2006 13:58:59 GMT
Martin,

Martin Gainty wrote:
> Yaar-
> try 
> 
> init()
> {
>  try 
> {
> //code here
> }
> catch(Exception excp)
> {
> System.exec("/PATH/TO/JAKARTA/bin/shutdown.sh");
> }
> }

OMG I'm going to vomit. At least you could have used System.exit().

Please, everyone, never do anything like this.

-chris



Mime
View raw message