nerdexam
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)
  • A
    9% (4)
  • B
    2% (1)
  • C
    73% (32)
  • D
    16% (7)

Community Discussion

No community discussion yet for this question.

Full 1Z0-860 Practice