This exception is thrown when you use method that throws this exception, so
as with any exception you have to put this method in try{} block and in
catch(e com.evermind.server.rmi.OrionRemoteException) {} put method that
shows the user message about lacking of security permissions. This is my
opinion
Elena


>From: "Johan Fredriksson" <[EMAIL PROTECTED]>
>Reply-To: Orion-Interest <[EMAIL PROTECTED]>
>To: Orion-Interest <[EMAIL PROTECTED]>
>Subject: RE: QUESTIONS ABOUT MANAGING SECURITY
>Date: Fri, 28 Sep 2001 13:36:07 +0200
>
>Try setting up an errorpage for the error
>
>com.evermind.server.rmi.OrionRemoteException
>
>//Johan
>
>-----Original Message-----
>From: David Bonilla [mailto:[EMAIL PROTECTED]]
>Sent: den 27 september 2001 12:56
>To: Orion-Interest
>Subject: QUESTIONS ABOUT MANAGING SECURITY
>
>
>I have implemented security on my application and I´m a newbie with
>these questions. My apply catch the exceptions and show it via JSP.
>
>When I try to access a method that I don't have permission for, I get a
>com.evermind.server.rmi.OrionRemoteException: dave is not allowed to
>call this EJB method, check your security settings (method-permission in
>ejb-jar.xml and security-role-mapping in orion-application.xml).
>
>This a Orion propietary Exception and my question is... Wich is the
>Exception that throws every ApplicationServer ? a generic
>RemoteException ? and how can I manage it to control if it´s a security
>exception and show, for example, a "You´re not allowed to do that" text
>in my JSP ?
>
>Thank you very much, mates !!!!
>
>__________________________
>David Bonilla Fuertes
>THE BIT BANG NETWORK
>http://www.bit-bang.com
>Profesor Waksman, 8, 6º B
>28036 Madrid
>SPAIN
>Tel.: (+34) 914 577 747
>Móvil: 656 62 83 92
>Fax: (+34) 914 586 176
>__________________________
>
>
>


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


Reply via email to