posted 14 years ago
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.