Page 1 of 1

(c) You are given the source code below that defines an EJB in Java EE. @Stateless public class ExampleService { public

Posted: Fri May 20, 2022 11:57 am
by answerhappygod
C You Are Given The Source Code Below That Defines An Ejb In Java Ee Stateless Public Class Exampleservice Public 1
C You Are Given The Source Code Below That Defines An Ejb In Java Ee Stateless Public Class Exampleservice Public 1 (54.72 KiB) Viewed 48 times
(c) You are given the source code below that defines an EJB in Java EE. @Stateless public class ExampleService { public void reviewEmployeeData(...) {// do something } public void addEmployeeData(...) {// do something} } Two roles are needed to be declared: DOMAIN1 and DOMAIN2. The role of DOMAIN1 is authorised for methods that review employee data and the role of DOMAIN2 is authorised for methods that add employee data. What are the right annotations for both methods: reviewEmployee Data and addEmployee Data and the required annotation for this class? Briefly explain your answer. (d) The two command buttons below produce the same navigation: <h:commandButton value="Submit1" action="result" /> <h:commandButton value="Submit2" action="#{jsfBean.getResult()}" /> Explain how these two different lines can produce the same navigation.