Page 1 of 1

About Question enthuware.oce-ejbd.v6.2.478 :

Posted: Fri Aug 05, 2011 11:39 am
by PedroKowalski
Howdy!

Just a note to the explanation:
Parameters:

roleName - The name of the security role. The role must be one of the security roles that is defined in the deployment descriptor.
As far as I remember, the overall view on security roles is a set derived from security roles defined in DD and in @DeclareRoles. Therefore I think in order to invoke the isCallerInRole(String) method, it's enough that the role is defined through the @DeclareRoles annotation.

Cheers!

Re: About Question enthuware.oce-ejbd.v6.2.478 :

Posted: Sun Aug 07, 2011 9:14 am
by admin
This method description is copied from the API: http://download.oracle.com/javaee/6/api ... ng.String)

But technically, you are correct. Appropriate note has been added to the explanation.

Thanks for your feedback!