costin 02/04/17 15:22:54 Modified: jk/conf jk2.properties workers2.properties Log: Another config update. This one will load all workers, and redirect the first 3 servlet examples to 3 different channels ( jni, unix socket, tcp socket ). It also has shm enabled ( it's doing nothing so far - but getting closer ). Revision Changes Path 1.5 +8 -1 jakarta-tomcat-connectors/jk/conf/jk2.properties Index: jk2.properties =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/jk/conf/jk2.properties,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- jk2.properties 16 Apr 2002 00:14:12 -0000 1.4 +++ jk2.properties 17 Apr 2002 22:22:54 -0000 1.5 @@ -15,7 +15,7 @@ # Handlers that will be loaded by jk2: # Default: -handler.list=channel,unixChannel,channel8019,channelJni,request,container +handler.list=channel,apr,shm,unixChannel,channel8019,channelJni,request,container # Transport handler. # Default: @@ -36,6 +36,13 @@ handler.channelJni.className=org.apache.jk.common.ChannelJni handler.channelJni.next=request + +handler.apr.className=org.apache.jk.apr.AprImpl +# handler.apr.aprHome=/usr/lib + +handler.shm.className=org.apache.jk.common.Shm +handler.shm.file=/tmp/jk2.shm + # Optional - right now request handles all messages # handler.dispatch.className=org.apache.jk.common.HandlerDispatch 1.6 +22 -7 jakarta-tomcat-connectors/jk/conf/workers2.properties Index: workers2.properties =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/jk/conf/workers2.properties,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- workers2.properties 16 Apr 2002 00:14:12 -0000 1.5 +++ workers2.properties 17 Apr 2002 22:22:54 -0000 1.6 @@ -17,6 +17,11 @@ # For apache1 the file must be specified if you want logging. # file=logs/mod_jk.log +[shm] +#file=${TOMCAT_HOME}/work/jk2.shm +file=/tmp/jk2.shm +size=1000000 + #################### Channels #################### # Each channel defines a communication mechanism to a tomcat instance. @@ -71,23 +76,23 @@ # JAVA_HOME and TOMCAT_HOME can be set as environment variables [vm] # Optional: JVM= PATH_TO_libjvm.so ( standard locations are searched ) -OPT=-Djava.class.path=${TOMCAT_HOME}/lib/tomcat.jar${ps}${TOMCAT_HOME}/lib/container/tomcat-jni.jar +OPT=-Djava.class.path=${TOMCAT_HOME}/lib/tomcat.jar${ps}${TOMCAT_HOME}/lib/container/tomcat-jni.jar${ps}${TOMCAT_HOME}/lib/common/commons-logging.jar # OPT=-Djava.class.path=${TOMCAT_HOME}/bin/bootstrap.jar #OPT=-Djava.class.path=${TOMCAT_HOME}/lib/container/tomcat-jk2.jar${ps}${TOMCAT_HOME}/lib/common/tomcat-util.jar -OPT=-Xmx128M +#OPT=-Xmx128M OPT=-Dtomcat.home=${TOMCAT_HOME} -OPT=-Dcatalina.home=${TOMCAT_HOME} -OPT=-Djava.compiler=NONE +#OPT=-Dcatalina.home=${TOMCAT_HOME} +#OPT=-Djava.compiler=NONE [worker.jni:jniCmd1] # For 3.3 class=org/apache/tomcat/startup/Main -#ARG=start +ARG=start # For 4.0 # class=org/apache/catalina/startup/Bootstrap -ARG=start +#ARG=start # For JkMain ( testing ) #ARG=-out @@ -100,9 +105,19 @@ # XXX Uris to be read from separate file, one per webapp. # XXX Webapps to be declared automatically, using webapps/ content :-) -[uri:/examples/*] +[uri:/examples/servlet/HelloWorldExample] worker=ajp13:jni # worker=ajp13:localhost:8009 +# worker=ajp13:unixSocket + +[uri:/examples/servlet/RequestHeaderExample] +#worker=ajp13:jni +# worker=ajp13:localhost:8009 +worker=ajp13:unixSocket + +[uri:/examples/servlet/RequestInfoExample] +#worker=ajp13:jni +worker=ajp13:localhost:8009 # worker=ajp13:unixSocket
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>