File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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%)<===
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: @DeclareRoles
 
Similar Threads
Security in EJB
Security
@DeclareRoles vs @RolesAllowed
Query:About RolesAllowed annotation
@DeclareRoles