I don't have an answer for your question but have the same question myself with a little twist. The EJB doesn't load the library directly but uses a helper class to do so. Have you found out anymore information? I am now trying to configure JBoss to enforce the Java 2 Platform Security policy discussed in EJB 1_1 spec chapter 18.2 to see if our system breaks. Unfortunately I cannot find the point with these securities are configured (only things like users and method access).
I would appreciate any feedback that you have!
From a JSP we've been trying to use an EJB as a wrapper around a JAVA class that has a native interface to a C++ dll. We can't get past "java.lang.UnsatisfiedLinkError: ".
We have read all of the forum messages we could find on this subject and have implemented the suggestions. We have even changed to "System.load" from "System.loadLibrary" to no avail. We have also tried calling a class containing the native interface from the JSP using the "<jsp:useBean..." tag.
Any suggestions would be appreciated.
The spec says you must not use native code in your EJB. A normal wrapper won't help at all since a wrapper tries to hide the implementation for the coder using the wrapper.
The best way to do these things is to use a MBean doing the native things. Let your EJB talk to the MBean (a MBean wrapper if you like ;-)