GIAC
GSSP-JAVA · Question #49
Which of the following statements about the isCallerInRole() method are true? Each correct answer represents a complete solution. Choose all that apply.
The correct answer is A. It can be called from the PostConstruct and PreDestroy callback methods of a stateful C. It cannot be called from a message-driven bean. D. It can be invoked only from the business method of an enterprise bean. See the full explanation below for the reasoning.
Question
Which of the following statements about the isCallerInRole() method are true? Each correct answer represents a complete solution. Choose all that apply.
Options
- AIt can be called from the PostConstruct and PreDestroy callback methods of a stateful
- BIt is present in the UserTransaction interface.
- CIt cannot be called from a message-driven bean.
- DIt can be invoked only from the business method of an enterprise bean.
How the community answered
(41 responses)- A76% (31)
- B24% (10)
Community Discussion
No community discussion yet for this question.