----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

on 2/11/00 12:23 PM, Don O'Neil <[EMAIL PROTECTED]> wrote:

> Do you mean to launch the java command only and it will launch apache? I'm
> not sure what you're referring to.
> 
> BTW, Thanks for all the help to date, you have been a wonderfull resource.
> 
>>> #!/bin/sh
>>> /usr/local/apache/bin/httpd -f /usr/local/apache/conf/$1.httpd.conf &
>>> java -cp /usr/local/jserv/lib/ApacheJServ.jar:/usr/JSDK2.0/lib/jsdk.jar
>>> org.apache.jserv.JServ
>> /usr/local/apache/conf/jserv/$1.jserv.properties &
>> 
>> Instead of starting it that way, simply start the JVM only.

No. Start Apache once. This will start up one JVM with it.

Then, use the ApJServMount directive to point to another JVM running on
another port that has been started with this line:

java -cp /usr/local/jserv/lib/ApacheJServ.jar:/usr/JSDK2.0/lib/jsdk.jar
org.apache.jserv.JServ /usr/local/apache/conf/jserv/$1.jserv.properties &

Note that I removed the line where you start the httpd.

The picture is like this:

httpd -> starts JVM running on port 8007 and IP 10.0.0.1
you -> starts JVM on port 8007 and IP 10.0.0.2

The "httpd" will then communicate with the second JVM that "you" started via
a correctly setup ApJServMount directive.

This will work. You should also read the PDF documents on our website that
details how this works...

http://java.apache.org/jserv/papers/techniques.pdf

-jon

-- 
Come to the first official Apache Software Foundation
Conference!  <http://ApacheCon.Com/>




--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to