Oracle
1Z0-860 · Question #24
A deployer is given the following session bean: 10. ©Stateless 11. @RolesAllowed("BATH") 12. @DeclareRoles("SOAP") 13. public class ShowerBean implements Shower { 14. public void plugO {} 15.} and…
The correct answer is D. BATH and SOAP and TOWEL. See the full explanation below for the reasoning.
Question
A deployer is given the following session bean: 10. ©Stateless 11. @RolesAllowed("BATH") 12. @DeclareRoles("SOAP") 13. public class ShowerBean implements Shower { 14. public void plugO {} 15.} and the following associated excerpt from the ejb-jar.xml descriptor file: 20. <assembly-descriptor> 21. <security-role> 22. <role-name>TOWEL</role-name> 23. </security-role> 24. </assembly-descriptor> Which roles is the deployer expected to map to users or user groups?
Options
- ATOWEL
- BBATH and SOAP
- CBATH and TOWEL
- DBATH and SOAP and TOWEL
How the community answered
(67 responses)- A9% (6)
- B4% (3)
- C3% (2)
- D84% (56)
Community Discussion
No community discussion yet for this question.