nerdexam
Oracle

1Z0-860 · Question #36

You have been asked to develop business methods for an enterprise bean to fulfill the following objective: If the JDBC connection is NOT available, the current state of the shopping cart session…

The correct answer is E. Both session beans and message-driven beans can fulfill some but not all of the requirements. See the full explanation below for the reasoning.

Question

You have been asked to develop business methods for an enterprise bean to fulfill the following objective: If the JDBC connection is NOT available, the current state of the shopping cart session must be serialized. A serialized state must be written to a text file using a java.io.PrintWriter. Data must be shared with a Web services end point. Logging information must be displayed in ajavax.swing.JPanel component. Which is true?

Options

  • AThe requirements can be fulfilled only in session beans.
  • BThe requirements can be fulfilled only in message-driven beans.
  • CAll of the requirements can be fulfilled using either session beans or message-driven beans.
  • DNone of the requirements can be fulfilled using either session beans or message-driven beans.
  • EBoth session beans and message-driven beans can fulfill some but not all of the requirements.

How the community answered

(30 responses)
  • A
    3% (1)
  • B
    7% (2)
  • C
    17% (5)
  • E
    73% (22)

Community Discussion

No community discussion yet for this question.

Full 1Z0-860 Practice