----- Original Message -----
From: "Juergen Messer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 15, 2000 6:49 PM
Subject: System.setSecurityManager(null) in SessionBean?


> Hello,
>
> we need to use a class from the Package "sun."
> This causes a SecurityAccessExcepiton, because the "java.security" file in
> the jre/lib/ path of the jdk forbid the access.
> We don't want to chance this file on every computer, so we set the
> SecurityManager to NULL before we call the sun-class. After it we set the
> SecurityManager to "new SecurityManager()". (codeexample at the footer of
> the mail)
>
> This looks for me a little bit "quick and dirty", do you have a better
> solution for this special problem for me?
> We don't want to change the java.security file !!!!!
>
> Thanks for any hints, Juergen Messer
>
> --------------------------------------------
> System.setSecurityManager(null);
>
> // call some sun - classes
>
> System.setSecurityManager(new SecurityManager());
> --------------------------------------------
>

----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to