Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 43582 invoked from network); 22 Nov 2002 16:56:50 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 22 Nov 2002 16:56:50 -0000 Received: (qmail 10772 invoked by uid 97); 22 Nov 2002 16:57:45 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@jakarta.apache.org Received: (qmail 10738 invoked by uid 97); 22 Nov 2002 16:57:43 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 10713 invoked by uid 98); 22 Nov 2002 16:57:42 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <3DDE618E.5050405@cs.com> Date: Fri, 22 Nov 2002 11:55:42 -0500 From: Alexander Leyke User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en, ru MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: JK2 module for AOLserver References: <3DDA7BDC.2090103@cs.com> <3DDACB1F.3070209@cs.com> <3DDC2D3C.3020000@cs.com> <3DDD5FF7.8080801@cs.com> <3DDD6FA8.2000404@cs.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Mailer: Unknown (No Version) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Costin Manolache wrote: >Are you using the jni channel ? Is that working too ? > > No, it is the default ajp13 channel. I think I told you about my doubts about jk_workerEnv.c hardcoding "ajp13" as the type for all channel initialization. Anyway, this is how the code looks like now (let me know if I am missing the point here). Would the code I have commented out use jni channel? static int jk2_workerEnv_addChannel(jk_env_t *env, jk_workerEnv_t *wEnv, jk_channel_t *ch) { ... /* Automatically create the ajp13 worker to be used with this channel. */ jkb=env->createBean2(env, ch->mbean->pool, "ajp13", ch->mbean->localName ); /* AL - attempt to change to different channel if (strcmp (ch->mbean->localName, "jni") == 0) factype = "worker.jni"; else factype = "ajp13"; */ ... > >Regarding jsp - it uses ant to compile, so you may want to set a >system property to specify the compiler ( you can do it in the worker >config ). I use "build.compiler=jikes" :-) > > Not sure how the things are related to ant. Standalone Tomcat compiles JSP perfectly well, so I think this is related to runtime environment, some option missing from in-process environment. Isn't ant used strictly at build time, and JSP compile done by Tomcat translating things to Java and then calling JVM to compile into bytecode? >You can have hooks for startup, init, or close - but the only one that >matters ( in most cases ) is the one that loads main(). > > I think there is a 4th phase, shutdown. What does servlet spec say about shutdown, is there a way to register a "shutdown" servlet - loosing that capability may not be the best thing. I do see slightly different behavior now - there is a "Service shutting down" message from Tomcat, but AOLserver shutdown messages are missing. It could be bugs in my code, I know I forgot to initialize JVM in separate thread (has to do with AOLserver disabling signals in main thread, and JVM depending on them to do garbage collection). Thank you, Alex -- To unsubscribe, e-mail: For additional commands, e-mail: