Return-Path: Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 75299 invoked by uid 500); 26 Jul 2001 00:57:25 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 75288 invoked from network); 26 Jul 2001 00:57:25 -0000 User-Agent: Microsoft-Entourage/9.0.2509 Date: Thu, 26 Jul 2001 01:57:27 +0100 Subject: Re: New code for APR-UTIL... From: "Pier P. Fumagalli" To: , Message-ID: In-Reply-To: <0107251648180C.22553@koj.rkbloom.net> Mime-version: 1.0 Organization: Apache Software Foundation Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N And too bad, but impossible... Under OS/X, to load the library I need to call NSAddModule, as the JVM lib is not linked as a MH_BUNDLE (shit). So we can't really load the VM in any environment using APR (under OS/X you use NSLinkModule)... And on Linux, the libjvm.so file MUST be in the LD_LIBRARY_PATH variable (as dlopen fails miserably if it's not there). Shit I should think twice before posting :) I'll keep the implementation (right now) as clean and as APR-like as possible (reusing stuff where I can), and when this will be hopefully fixed in OS/X 10.1 (coming in September), we could plan an integration... Basically, what I wanted to do, was to, given a JAVA_HOME environment variable, call something like apr_java_load(...) which would return a pointer to a JNIEnv... What I wanted to do was to have an easier invocation mechanism to discover and construct the JVM... The code is right now non-APRized in the jakarta-tomcat-4.0/service repository, but since I'm rewriting it, I wanted to make it more APR friendly. Pier Ryan Bloom at rbb@covalent.net wrote: > > ++1! That would be VERY cool! > > Ryan > > On Wednesday 25 July 2001 16:10, Pier P. Fumagalli wrote: >> Anyone interested in having some code to tie up a Java VM to APR... >> I was thinking about writing a new piece of APR-UTIL. It would be cool to >> have (I'm writing a JNI plugin for Tomcat-4.0, and use APR to use the DSO >> JVM dll)... >> >> Pier