Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes EJB and other Java EE Technologies and the fly likes @DeclareRoles Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "@DeclareRoles" Watch "@DeclareRoles" New topic
Author

@DeclareRoles

Duran Harris
Ranch Hand

Joined: Nov 09, 2008
Posts: 571

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%)<===
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: @DeclareRoles
 
Similar Threads
Security in EJB
@DeclareRoles vs @RolesAllowed
Query:About RolesAllowed annotation
@DeclareRoles
Security