IDependOn-Set: 1
IDependOn-Set: 138
IDependOn-Set: 142
IDependOn-Set: 150
IDependOn-Set: 2
IDependOn-Set: 7
LastModifiedSecs: 926100736
Parent: 7
SequenceNumber: 2
Title: How does the JVM (servlet engine) get started by the Apache Process???
Part: 0
Author-Set: jon@working-dogs.com
HideAttributions: 1
LastModifiedSecs: 926100720
Type: monospaced
Lines: 53
----------
From: "Craig R. McClanahan" <cmcclanahan@mytownnet.com>
To: Java Apache Users <java-apache-users@list.working-dogs.com>
Subject: Re: servlet engine question
Date: Fri, May 7, 1999, 8:10 AM


mab@pc.webstakes.com wrote:

> Hello,
>
> After looking at the docs, I cannot tell how the
> servlet engine gets started. Since I start both apache and
> the servlet engine with /opt/apache/bin/apachectl start, I
> assume that the servlet engine is started by apache when the
> mod_jserv.so module is initialized. If this is correct, the
> servlet engine process is named "httpd". Is there any way to know
> which httpd process is the servlet engine?
>
> Are there any docs which cover in detail how the servlet
> engine gets started?
>
> Thanks,
>
> Mark
>

In general, there are two modes in which the servlet engine gets
started:

* "Automatic" mode - The servlet engine process is started by
  the MOD_JSERV module when it initializes.

* "Manual" mode - You must run a shell script to start
  the servlet engine application yourself.

In neither case is the executing process named "httpd" -- those are all
Apache processes.  Instead, the executing program will be the name of
the "java" interpreter that is installed on your server.  In automatic
mode, this is run as the same OS username as the Apache processes are,
but in manual mode you can start it up under any username you want.

If you are not seeing such a process, you don't have the thing
configured right.  There are detailed instructions in the docs included
with Apache JServ, plus the FAQ-O-MATIC on the web site
(http://java.apache.org).  A few months ago, Servlet Central
(http://www.servletcentral.com) ran a very detailed article about how to
install and configure Apache JServ.

As to "how" it gets started, the best source is looking at the code ...
:-)

Craig
EndPart: 0
