Serge Knystautas wrote:
> 
> Eric Hancock wrote:
> >
> > Right, but any product you roll out to a production environment needs some
> > kind of management interface.  Not necessarily a UI, but hooks to get
> > information at runtime, and to shut down / take a server offline.
> >
> > I could help with this if people think it would be useful.
> >
> > E -
> 
> I might agree we need a UI for some things, but Apache web server runs
> 60% of the web servers out there and you just kill that process.  Many
> other UNIX services function this way as well.  I might even agree that
> shutdown hooks would be useful, but I don't think "production
> environment" has anything to do with this. ;)

Totally wrong!!!

Apache does shutdown nicely because it's native enough to intercept the
shutdown calls and indicate all its modules it's going down... allowing
you to cleanup nicely.

But Java doesn't have such signal hooks (unfortunately), so either we
wrap James with a native executable that hooks on the shutdown signals
and calls some JNI calls (or calls thru a socket, pipes in standard
input... whatever) or we create a simple class with a main that does
this for us (much similar to what tomcat does today).
 
> On a somewhat related note, one of the nicest things I like in JDK 1.3
> is the ability to add shutdown hooks so even if someone hits Ctrl-C or
> does kill in UNIX, you can still fire some Java code to run before the
> JVM exits.

Yep, they finally got it, but I'm don't think we are ready to move to
1.3 yet.

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<[EMAIL PROTECTED]>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------




------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/>
Problems?:           [EMAIL PROTECTED]

Reply via email to