Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 60706 invoked from network); 26 Oct 2004 00:47:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 26 Oct 2004 00:47:33 -0000 Received: (qmail 68773 invoked by uid 500); 26 Oct 2004 00:47:04 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 68596 invoked by uid 500); 26 Oct 2004 00:47:03 -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 68582 invoked by uid 99); 26 Oct 2004 00:47:03 -0000 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=FROM_ENDS_IN_NUMS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [199.88.205.1] (HELO mail2.basistech.net) (199.88.205.1) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 25 Oct 2004 17:47:02 -0700 Received: from mail3.basistech.net ([10.1.1.99]) by mail2.basistech.net with Microsoft SMTPSVC(6.0.3790.211); Mon, 25 Oct 2004 20:46:46 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: DO NOT REPLY [Bug 31883] - Better JNI support Date: Mon, 25 Oct 2004 20:46:44 -0400 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: DO NOT REPLY [Bug 31883] - Better JNI support Thread-Index: AcS6wUcwd2seT9j6Tt63KhAP1GBl7gAMxBlg From: "Benson Margulies" To: "Tomcat Developers List" X-OriginalArrivalTime: 26 Oct 2004 00:46:46.0424 (UTC) FILETIME=[45379180:01C4BAF5] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I'm supporting a number of JNI-related things in Tomcat, and I just don't see the point of this idea. A JNI class is inevitably a per-JVM resource. Giving a web-app a backdoor way to push the classes up to the common level seems like a security problem. What if two webapps try to load dueling versions of some JNI? My solution here has been to work with the J2EE JNDI support. I load the classes in common\lib, and I have bean classes that manage the resource. This requires tomcat-specific configuration. Perhaps there would be more appetite for a discussion of a feature to make it easier to manage 'common' classes. This might also be purely bloatesque. I'd love to be able to package up some JAR files, the information for the global JNDI resources, and the ResourceLink for the default context in a lump. As it is, I have to give customers a rather elaborate set of instructions. Or an application that automagically edits xml files.. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org