tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arieh Markel <Arieh.Mar...@Central.Sun.COM>
Subject Re: Question: how to stop when RMI registry not available ?
Date Tue, 08 Feb 2000 23:51:05 GMT

> I am embedding tomcat in a Java application in order to provide HTTP-based
> manageability for the application.
> 
> When trying to stop the embedded webserver on the application I am embedding
> tomcat in, I cannot take advantage of using the RMI registry for the
> administrative port, since the registry is used by the application itself.
> 
> I am trying to find a way to perform a tomcat shutdown without stopping
> the application itself.
> 
> If I invoke the HttpServer.stop() method directly, my application
> terminates.

Perusal of the code indicates that shutting down the HttpServer triggers
a ContextManager.stop(), that includes a 'System.exit(0)' call.

Does not this harm the ability to embed tomcat ?

Is this the intended behavior ?

Arieh
--
 Arieh Markel		                Sun Microsystems Inc.
 Network Storage                        500 Eldorado Blvd. MS UBRM11-194
 e-mail: arieh.markel@sun.COM           Broomfield, CO 80021
 Let's go Panthers !!!!                 Phone: (303) 272-8547 x78547
 (e-mail me with subject SEND PUBLIC KEY to get public key)


Mime
View raw message