- 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 47 times
(c) You are given the source code below that defines an EJB in Java EE. @Stateless public class ExampleService { public
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
(c) You are given the source code below that defines an EJB in Java EE. @Stateless public class ExampleService { public
(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.