mturk       2002/10/09 06:01:29

  Modified:    jk/xdocs/jk2 confighowto.xml
  Log:
  Add the JNI Minimum configuration.
  
  Revision  Changes    Path
  1.2       +57 -1     jakarta-tomcat-connectors/jk/xdocs/jk2/confighowto.xml
  
  Index: confighowto.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/xdocs/jk2/confighowto.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- confighowto.xml   8 Oct 2002 17:59:25 -0000       1.1
  +++ confighowto.xml   9 Oct 2002 13:01:29 -0000       1.2
  @@ -58,4 +58,60 @@
   </p>
   </section>
   
  +<section name="Minimum JNI Configuration">
  +<p>
  +    Minimum JNI configuration is the simplest one to make the Tomcat working
  +    from inside the web server as inprocess. The only comunication channel used
  +    is JNI. The JK2 will register all the native calls by itself, so there is
  +    no need to specify the native library on Java side.
  +</p>
  +<p>
  +jk2.properties:
  +<source>
  +# Add the apr and channelJni to the list of handlers
  +handler.list=apr,request,container,channelJni
  +# The native libraries will be registered by JK2
  +apr.jniModeSo=inprocess
  +</source>
  +</p>
  +<p>
  +workers2.properties:
  +<source>
  +# Define the comunication channel 
  +[channel.jni:jni]
  +info=The jni channel, used if tomcat is started inprocess
  +
  +# Define the parameters for the Java Virtual Machine
  +[vm:]
  +info=Parameters used to load a JVM in the server process
  
+OPT=-Djava.class.path=${TOMCAT_HOME}/lib/tomcat-jni.jar;${TOMCAT_HOME}/lib/tomcat.jar
  +OPT=-Dtomcat.home=${TOMCAT_HOME}
  +OPT=-Dcatalina.home=${TOMCAT_HOME}
  +OPT=-Xmx128M
  +
  +# JNI worker startup handler
  +[worker.jni:onStartup]
  +info=Command to be executed by the VM on startup. This one will start tomcat.
  +class=org/apache/jk/apr/TomcatStarter
  +ARG=start
  +stdout=${serverRoot}/logs/stdout.log
  +stderr=${serverRoot}/logs/stderr.log
  +
  +# JNI worker shutdown handler
  +[worker.jni:onShutdown]
  +info=Command to be executed by the VM on shutdown. This one will stop tomcat.
  +class=org/apache/jk/apr/TomcatStarter
  +ARG=stop
  +
  +# Map the Tomcat examples webapp to the Web server uri space
  +[uri:/examples/*]
  +info=Map the whole webapp
  +</source>
  +</p>
  +<p>
  +Start the Web server and browse to the <a>http://localhost/examples/</a>
  +</p>
  +
  +</section>
  +
   </document>
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to