1. The web interface and EJBs security works but when I try to use a restricted  a EJB method I only get a remoteException (I know... itґs normal). Is there some way to control if this exception is caused by a Security Constraint ? (To show for example... "Youґre not allowed to do that").
 
You probably need to derive all you exceptions from RemoteException, and work with these exceptions as usually, for example:
 
public class WrongUserException extends RemoteException {
  public WrongUserException { 
  }
  ...
}
 
Then you code will look like:
 
public class SomeClass {
  public void SomeMethod {
    try {
      // Invoke some secure method..
      MyEJB ejb = someBean.someSecureMethod();
    }
    catch( WrongUserException e ) {
      // Wrong User!
    }
    catch( RemoteException ) {
      // Something else has happened!
    }
  }
}
 
HTH,
Sergei.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of David Bonilla
Sent: Thursday, September 27, 2001 12:42 PM
To: Orion-Interest
Subject: MORE THAN ONE USER PROBLEM

Hi Magnus !!!
 
Our security developing on Orion goes very good. Now I have more specific questions.
 
1. The web interface and EJBs security works but when I try to use a restricted  a EJB method I only get a remoteException (I know... itґs normal). Is there some way to control if this exception is caused by a Security Constraint ? (To show for example... "Youґre not allowed to do that").
 
2. I try to use two users with two different roles/groups but it doesnґt work (I must do something wrong...) have you some kind of application (like the illuminati apply you sended me) but with two different users and different roles/groups ?.
 
3. At least, but not at last... with who must we talk about Orion pricing and the possibility to include it into a "all-in-one" pack with our application ?
 
Thank you very much Magnus !!!
 
Best Regards !! 
__________________________
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
__________________________
 
 

Reply via email to