Question: (c) You are given the source code below that defines an EJB in Java EE. @........ @Stateless public class Example Service { @....... public
(c) You are given the source code below that defines an EJB in Java EE. @........ @Stateless public class Example Service { @....... 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. [6 marks]
Step by Step Solution
There are 3 Steps involved in it
The image contains a question that prompts you to identify and briefly explain the right annotations for two methods within a stateless EJB Enterprise ... View full answer
Get step-by-step solutions from verified subject matter experts
