tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hgo...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jk/native/common jk_jni_worker.c
Date Wed, 04 Sep 2002 11:35:13 GMT
hgomez      2002/09/04 04:35:13

  Modified:    jk/native/common jk_jni_worker.c
  Log:
  First try to make use of JNI of iSeries (AS/400).
  
  We don't dynamically load the JVM libraries (dll/shared) but instead
  use it directly (mod_jk should be compiled with JVM SRVPGM).
  
  I'll have to find dlopen/dlsym equivalent on OS/400 and hope I won't have
  to do MI programming on mod_jk ;)
  
  Revision  Changes    Path
  1.12      +8 -2      jakarta-tomcat-connectors/jk/native/common/jk_jni_worker.c
  
  Index: jk_jni_worker.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_jni_worker.c,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- jk_jni_worker.c	11 Apr 2002 21:48:19 -0000	1.11
  +++ jk_jni_worker.c	4 Sep 2002 11:35:12 -0000	1.12
  @@ -746,7 +746,13 @@
       if(jni_create_java_vm && jni_get_default_java_vm_init_args && jni_get_created_java_vms)
{
           return JK_TRUE;
       }
  -#else 
  +#elif defined(AS400)
  +    jk_log(l, JK_LOG_DEBUG,
  +           "Direct reference to JNI entry points (no SRVPGM)\n");
  +    jni_create_java_vm = &JNI_CreateJavaVM
  +    jni_get_default_java_vm_init_args = &JNI_GetDefaultJavaVMInitArgs;
  +    jni_get_created_java_vms = &JNI_GetCreatedJavaVMs;
  +#else
       void *handle;
       jk_log(l, JK_LOG_DEBUG, 
              "Into load_jvm_dll, load %s\n", p->jvm_dll_path);
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message