This isn't portable across EJB servers, is it? Anyway, thanks.

Alexander Klyubin

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Scott M Stark
Sent: Friday, January 19, 2001 19:29
To: jBoss
Subject: Re: [jBoss-User] Testing bean security with JUnit


The latest cvs code throws a SecurityException wrapped in a RemoteException
so you
can identify a security exception by looking at the remote exception detail
value:

try
{
    ...
}
catch(RemoteException e)
{
    if( e.detail instance of SecurityException )
        System.out.println("Security violation");
}



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to