You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by "Rodriguez, Alex B" <RO...@polaroid.com> on 2000/08/25 18:31:02 UTC
Ajp12ConnectionHandler necessary?
Hi all,
I apologize if this has been thoroughly discussed, but I didn't see anything
in the archives.
I was wondering why an Ajp12ConnectionHandler needs to be specified in the
server.xml file for tomcat to shutdown gracefully. After checking the source
code, I saw that tomcat.java uses this handler to shut the server down, but
is there a particular reason for this?
I'm running tomcat as a stand-alone server using a pooled tcp connector, so
I don't have any need for this connector and would rather not have it start.
The user guide claims that only one of the two connectors in the default
server.xml file needs to be started, but this isn't true.
I would like to suggest either a change to the user guide, or even better, a
change to tomcat.java which allows the graceful shutdown of a server not
using Ajp12ConnectionHandler.
Thanks,
Alex
*************************
Alex B. Rodriguez
Gupta Consultancy
(617) 536-4269
alexrodr@mit.edu
*************************
Re: Ajp12ConnectionHandler necessary?
Posted by Costin Manolache <cm...@yahoo.com>.
You need to somehow tell tomcat to shutdown - killing the process is
not good.
The first solution used RMI.
Then ( when Ajp12 and apache connector was added ) we ( I ) removed the
RMI code ( since Ajp12 already provided that - and we had a bit more
control - like accept the stop message only from localhost). Using Ajp12 instead
of RMI is also good because it's simpler and have less chance to interfere with
servlets ( nameserver port conflicts, etc).
Another solution is to use an admin servlet ( like the one in /admin webapp).
If the servlet checks for localhost as client IP it will provide the same
functionality,
and it would be possible to add user/password.
The only problem with this aproach is that someone has to implement it :-)
Since the functionality is already there I don't think it's a priority, and if
you have time it would be better to pick something that is _not_ implemented
yet.
Costin
"Rodriguez, Alex B" wrote:
> Hi all,
> I apologize if this has been thoroughly discussed, but I didn't see anything
> in the archives.
>
> I was wondering why an Ajp12ConnectionHandler needs to be specified in the
> server.xml file for tomcat to shutdown gracefully. After checking the source
> code, I saw that tomcat.java uses this handler to shut the server down, but
> is there a particular reason for this?
> I'm running tomcat as a stand-alone server using a pooled tcp connector, so
> I don't have any need for this connector and would rather not have it start.
> The user guide claims that only one of the two connectors in the default
> server.xml file needs to be started, but this isn't true.
> I would like to suggest either a change to the user guide, or even better, a
> change to tomcat.java which allows the graceful shutdown of a server not
> using Ajp12ConnectionHandler.
>
> Thanks,
> Alex
>
> *************************
> Alex B. Rodriguez
> Gupta Consultancy
> (617) 536-4269
> alexrodr@mit.edu
> *************************
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: general-help@jakarta.apache.org