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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
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

Post 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 47 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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply