[JBoss-user] [Management, JMX/JBoss] - Re: JNI, System.loadLibrary() and class loader interactions

2006-01-11 Thread bhandsaker
If the DLL is being used by different native methods defined in the .war and in the .jar, then you may be in trouble. I suspect you will need to get all of the native methods that use the DLL into one place (e.g. one jar). We are still using 4.0.2. I don't know if 4.0.3 will affect this. We are

[JBoss-user] [Management, JMX/JBoss] - Re: JNI, System.loadLibrary() and class loader interactions

2005-11-02 Thread bhandsaker
Here's what we're doing. Basically you need to touch the class to force it to be loaded in the thread that initializes the MBean. The AHelpers.loadGCOSLibraries method is called from the MBean. Then we touch one class from each jar file that references native methods. Once the jar file is bound

[JBoss-user] [Management, JMX/JBoss] - Re: JNI, System.loadLibrary() and class loader interactions

2005-11-02 Thread bhandsaker
I was on the right track in what I wrote above. I finally found the following reference in the JNI spec (http://java.sun.com/j2se/1.5.0/docs/guide/jni/spec/design.html): anonymous wrote :"The programmer may use a single library to store all the native methods | needed by any number of

[JBoss-user] [Management, JMX/JBoss] - JNI, System.loadLibrary() and class loader interactions

2005-08-25 Thread bhandsaker
If this is the wrong forum, please redirect this. I have been debugging a problem with JBoss and JNI native code. I have sample code that runs outside of JBoss, but when run in JBoss it throws an UnsatisfiedLinkError referencing the method name on the first call to a native method. I have verifie