hi all;
i have an EJB which calls a helper class that makes a JNI call. i packages
the ejb jar such that it contains the bean classes, the helper class and the
dll.
i get the following exception in the server:
java.security.AccessControlException: access denied
(java.lang.RuntimePermission loadLibrary.myNativeLibrary)
i am using J2EE-RI as my server.
i have the following questions:
1. i know an ejb cant make a JNI calls, but if i pass the jni call to a
helper class is it OK?
2. in the ejb spec, restrictions part, it states that an ejb cant attemp to
load a native library and that this operation is reserved to the container,
is there a way to 'tell' the container to load the library(if possible
please tell how to do this in J2EE-RI)?
3. is the exception because of the restiction of JNI calls or becuase a
security policy. can i changes the security somewhere to bypass this
exception?
3. i tried to put the helper class in a util jar with the native dll and
access the helper class from the bean but got the same results.
4. what other method can i use to make JNI calls (not directly from an ejb)
using J2EE-RI?(please dont give me the briges solution like jinegra etc..)

__________________
Guy Katz
Comverse
[EMAIL PROTECTED]
+972 3 7663686

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to