Page 1 of 1

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

Posted: Fri May 20, 2022 12:19 pm
by answerhappygod
C You Are Given The Source Code Below That Defines An Ejb In Java Ee Stateless Public Class Exampleservice 1
C You Are Given The Source Code Below That Defines An Ejb In Java Ee Stateless Public Class Exampleservice 1 (163.17 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: reviewEmployeeData and addEmployeeData and the required annotation for this class? Briefly explain your answer. [6 marks]