Title: RE: Passing a security principal from client to bean

I checked it over again and i found my problem.
The security-role-ref was left out of the
enterprise-beans defintion.

sorry.

-----Original Message-----
From: Philippe Coq [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 12, 2001 1:54 AM
To: Robins, Anthony
Cc: [EMAIL PROTECTED]
Subject: Re: Passing a security principal from client to bean


> "Robins, Anthony" wrote:
>
> Tried this and it works as it should.
> But the following prints out 'false' which definitely should be
> 'true'.
>
> boolean inrole = context.isCallerInRole("admin");
> System.out.println("** in role: " + inrole);
>
> My jonas-users.properties is
> joebar = admin
>
> -- anthony
>
Is your jonas-users.properties in a location seen by the CLASSPATH?
Is you Deployment descriptor correctement set for role-name etc.. ?
regards

--
        Philippe

Philippe Coq  Evidian   Phone: (33) 04 76 29 78 49
Bull S.A  - 1 rue de Provence - 38432 Echirolles Cedex France
Download our EJBServer at http://www.objectweb.org

Reply via email to