GeeCON Prague 2014*
The moose likes EJB and other Java EE Technologies and the fly likes @DeclareRoles Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "@DeclareRoles" Watch "@DeclareRoles" New topic
Author

@DeclareRoles

Duran Harris
Ranch Hand

Joined: Nov 09, 2008
Posts: 598

Hi I'm struggling to understand what the @DeclareRoles annotation does...

I understand the @RunAs and @RolesAllowed but this is confusing me...

The way I understand it is that by the time the bean is called the caller already has a 'Principal' with it's role/s defined.....


===>SCJP 1.5(72%)<===
==>SCWCD1.5(76%)<===
 
GeeCON Prague 2014
 
subject: @DeclareRoles