Oracle
1Z0-860 · Question #163
Which option will a developer use to obtain a MessageDrivenContext in a message-driven bean class written to the EJB 3.0 API?
The correct answer is C. Declare a dependency on the MessageDrivenContext interface. See the full explanation below for the reasoning.
Question
Which option will a developer use to obtain a MessageDrivenContext in a message-driven bean class written to the EJB 3.0 API?
Options
- AImplement the MessageDrivenBean interface.
- BSpecify MessageDrivenContext as a constructor parameter.
- CDeclare a dependency on the MessageDrivenContext interface.
- DSpecify MessageDrivenContext as a parameter of the on Message method.
How the community answered
(44 responses)- A9% (4)
- B2% (1)
- C73% (32)
- D16% (7)
Community Discussion
No community discussion yet for this question.