You work as a Software Developer for NewTech Inc. You write a bean class using Enterprise
JavaBeans 3.0. The class uses the @DeclareRoles ("ADMIN, HR, DBA, USER") annotation to declare the security roles. The class contains a method named showResult(). You want to ensure that the ADMIN role is granted privilege to the showResult() method. Moreover, if a role that is not allowed to access the method tries to call the method, an error message must be shown. Assuming that there is no security-related element in the deployment descriptor, which of the following will you use to accomplish the task?
Each correct answer represents a part of the solution. Choose two.
Which of the following statements are true?
Each correct answer represents a complete solution. Choose all that apply.
Which of the following methods of the EJBContext interface can be called by both the BMT and CMT beans?
Each correct answer represents a complete solution. Choose all that apply.
Which of the following are valid thread state transitions?
Each correct answer represents a complete solution. Choose all that apply.
Which of the following statements are true about object serialization?
Each correct answer represents a complete solution. Choose all that apply.
Which of the following methods can be invoked from the ejbStore() method of an entity bean class?
Each correct answer represents a complete solution. Choose all that apply.
Which of the following data type values is returned by the System.in.read() console input function?
Which of the following exceptions will be thrown by the getFeature() method if the feature value cannot be assigned or retrieved?
Which of the following security related elements of the deployment descriptor matches the argument to the isCallerInRole() method?
The __________ interface accepts results from a SQL SELECT statement.