also;
i used a helper class to access a file on the file system and read its
contents to check if i will get an exception. the operation succeded.
my question is, why i could do that? what is the main difference between
making JNI call and using java.io to access the file directory?
as i understand they are bost restricted.
(i am using j2ee-ri1.3).

>  -----Original Message-----
> From:         Katz, Guy
> Sent: Tuesday, January 01, 2002 6:37 PM
> To:   '[EMAIL PROTECTED]'; J2EE-Interest-Group
> Subject:      JNI calls from an ejb helper class
>
> 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