Pier, I took a quick look at the code and found the RegisterNative function. This looks like an interesting feature. I also found the same function in your daemons code. The picture is becoming much clearer.
Let me try to get it working in the next few days with the callback function set to invoke setuid() and have the callback invoke (via Java reflection since it won't be there on Windows or standalone start. If I can get this to work, I will post the patches first so that all can inspect. Now that I understand this approach, it basically seems to work through the same logical steps (from a Tomcat Java code) perspective as invoking the callback function via JNI. In your approach, the function is preloaded for Java (no System.loadLibrary() required) and the Java code invokes the function like any other method (it just happens that the method doesn't exist at compile time but only at runtime). Thanks, Patrick Pier Fumagalli wrote: > > Pier Fumagalli <[EMAIL PROTECTED]> wrote: > > > Few hours... > > Yeah, whatever... Trivial... > > Pier > > -------------------------------------------------------------------------------- > Part 1.2Type: Macintosh File > > Part 1.3Type: Macintosh File > > Name: make.sh > make.sh Type: Bourne Shell Program (application/x-sh) > Encoding: base64 > > Part 1.5Type: Plain Text (text/plain) -- _____________________________________________________________________ Patrick Luby Email: [EMAIL PROTECTED] Sun Microsystems Phone: 408-276-7471 901 San Antonio Road, USCA14-303 Palo Alto, CA 94303-4900 _____________________________________________________________________ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>