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 Security in EJB 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 "Security in EJB" Watch "Security in EJB" New topic
Author

Security in EJB

Siva Masilamani
Ranch Hand

Joined: Sep 19, 2008
Posts: 385
Hi

i was going through one of web site and came across the following code.


Why do we need to use DeclareRoles annotation in the above code?

I thought we would be using this annotatation only when we use programmatic security,but as we can clearly see there is no such a code ?

Also if container can built up a role by inspecting the RolesAllowed annotation why do we need to use DeclareRoles in the code?

Thanks.

SCJP 6,SCWCD 5,SCBCD 5

Failure is not an option.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Security in EJB
 
Similar Threads
security DD tags..
Overriding @RolesAllowed in DD
@DeclareRoles vs @RolesAllowed
Security question: @RolesAllowed
Query:About RolesAllowed annotation