posted 19 years ago
If you want to allow several methods being called by anyone, Can you define these methods within an unchecked element? I thought you can specify unchecked element instead of rolename for a method, not for a list of methods.
The mock exam question 2 on page 593 chose this option:
***************************************************************************
What's true about methods that should run without being checked for authorization?
A) They can be listed in the <exclude-list> element
B) They can be listed in the <unchecked> element
C) When the <unchecked> element is used, it should be placed where the <role-name> element normally occurs in the deployment descriptor
D) When a method permission relation specifies both <unchecked> and a security role, the container will use the security role.
***************************************************************************
I thought the answe is only C, but the book checked B and C.
How can you specify a list of methods in an unchecked element? Different classes can have the same method name?
Srini Madala<br /> <br />SCJP2, SCWCD1.3, SCBCD1.3