-
1. Re: jca/jni packaging?
davidjencks Feb 22, 2002 10:13 PM (in response to rinn)This is not supported in any version of jboss currently, sorry. As far as I know, even if and when we do get deployment of native libraries to work, you still won't be able to redeploy them.
If you have much experience with native libraries would you consider writing a patch for this? IMO it will be easier for jboss 3, the deployment structure is a little simpler. Either version, it should involve just a few lines in RARDeployer. If you'd like more specific pointers on where to look let me know.
thanks
david jencks -
2. Re: jca/jni packaging?
davidjencks Feb 25, 2002 9:25 AM (in response to rinn)I added native library deployment over the weekend to jboss 3 (cvs). I don't have a very good test. Could you check and see if it works with your adapter?
Thanks
david jencks -
3. Re: jca/jni packaging?
hans_tw Feb 26, 2002 4:07 AM (in response to rinn)My colleague just tried to use SLSB to call a native method in a helper class.
We found that if we don't put the helper class in any package,we can avoid the exception and call the native method sucessfully. -
4. Re: jca/jni packaging?
davidjencks Feb 26, 2002 9:14 AM (in response to rinn)What?? Is the native lib in a package? If the helper class isn't in any package anywhere how does jboss or your code know about it? Please explain what you did that does work and what doesn't work.
Thanks -
5. Re: jca/jni packaging?
maku01 Mar 7, 2002 1:54 AM (in response to rinn)What is the right way to do this?
When I have to deal with JNI in EJB-context what I have to do to get no error? -
6. Re: jca/jni packaging?
davidjencks Mar 7, 2002 9:39 AM (in response to rinn)The only way I actually got to work was to put the native lib in with the java native libs so it would be loaded at vm startup. I've never succeeded in dynamically loading a native library and having it usable. However, others have, and are working on making this available in jboss.
-
7. Re: jca/jni packaging?
rinn Mar 7, 2002 9:56 PM (in response to rinn)Sorry I didn't respond to your earlier mail, David. I've been out on vacation for a week or so.
I got the native library to work (on NT, at least) by putting the DLL containing the native code in the path and loading it during static initialization of the class containing the native code.
s.