Hi:

I am trying to setup JServ so each zone runs under its own copy of JVM.
The reason for this is that each copy of JVM will be running under a
different UID/GID.  Below is what I believe to be set of configuration
files that will do that:

Is the ApJServLogFile entry needed since a log file is defined in each zone
startup script?  Each JVM must run on a different port number, right?

Web server configuration:

httpd.conf
----------
ApJServManual on
ApJServMount /servlets/zone1 ajpv11://localhost:8007/zone1
ApJServMount /servlets/zone2 ajpv11://localhost:8008/zone2
ApJServMount /servlets/zone3 ajpv11://localhost:8009/zone3
ApJServLogFile logs/jserv_log

First zone configuration:

The java command on our system is a wrapper file that contains all of the
classpath information except for Apache-JServ.jar.  Each start script will
be run under a different UID/GID.

start_jserv1
------------
#!/bin/sh
# Launch jserv in manual mode.
jserv=/usr/local/apache/jserv/lib/Apache-JServ.jar
props=/usr/local/apache/jserv/conf/jserv1.properties
log=/usr/local/apache/logs/jserv1_log
java -classpath $jserv org.apache.jserv.JServ $props &> $log

The Apache-JServ.jar file has been added to the classpath by the script
file.  Is it needed again in the jservx.properties file?

jserv1.properties
----------------
wrapper.bin=/usr/bin/java
wrapper.classpath=/usr/local/apache/jserv/lib/Apache-JServ.jar
port=8007
zones=zone1
zone1.properties=/usr/local/apache/jserv/conf/zone1.properties

zone1.properties
---------------
repositories=/data/jserv/zone1

Second zone configuration:

start_jserv2
------------
#!/bin/sh
# Launch jserv in manual mode.
jserv=/usr/local/apache/jserv/lib/Apache-JServ.jar
props=/usr/local/apache/jserv/conf/jserv2.properties
log=/usr/local/apache/logs/jserv2_log
java -classpath $jserv org.apache.jserv.JServ $props &> $log

jserv2.properties
----------------
wrapper.bin=/usr/bin/java
wrapper.classpath=/usr/local/apache/jserv/lib/Apache-JServ.jar
port=8008
zones=zone2
zone2.properties=/usr/local/apache/jserv/conf/zone2.properties

zone2.properties
---------------
repositories=/data/jserv/zone2

Third zone configuration:

start_jserv3
------------
#!/bin/sh
# Launch jserv in manual mode.
jserv=/usr/local/apache/jserv/lib/Apache-JServ.jar
props=/usr/local/apache/jserv/conf/jserv3.properties
log=/usr/local/apache/logs/jserv3_log
java -classpath $jserv org.apache.jserv.JServ $props &> $log

jserv3.properties
----------------
wrapper.bin=/usr/bin/java
wrapper.classpath=/usr/local/apache/jserv/lib/Apache-JServ.jar
port=8009
zones=zone3
zone3.properties=/usr/local/apache/jserv/conf/zone3.properties

zone3.properties
---------------
repositories=/data/jserv/zone3

Am I on the right track?  Any comments/suggestions would be appreicated.

Thanks,

Brian S. Wallace

Oak Ridge National Laboratory
P. O. Box 2008, MS 6394
Oak Ridge, Tennessee  37831-6394

Voice (423) 576-3193
Fax   (423) 574-5323

http://www-internal.ornl.gov/~xsw/



----------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://www.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to