nerdexam
Oracle

1Z0-860 · Question #295

A developer is working on a project that includes both EJB 2.1 and EJB 3.0 session beans. A lot of business logic has been implemented and tested in these EJB 2.1 session beans. Some EJB 3.0 session…

The correct answer is C. No need to modify existing EJB 2.1 session beans. Use the @EJB annotation to inject a reference to. See the full explanation below for the reasoning.

Question

A developer is working on a project that includes both EJB 2.1 and EJB 3.0 session beans. A lot of business logic has been implemented and tested in these EJB 2.1 session beans. Some EJB 3.0 session beans need to access this business logic. Which design approach can achieve this requirement?

Options

  • AAdd adapted home interfaces to EJB 3.0 session beans to make EJB 3.0 and EJB 2.1 session beans
  • BAdd EJB 3.0 business interfaces to existing EJB 2.1 session beans and inject references to these
  • CNo need to modify existing EJB 2.1 session beans. Use the @EJB annotation to inject a reference to
  • DNo need to modify existing EJB 2.1 session beans. Use the @EJB annotation to inject a reference to

How the community answered

(50 responses)
  • A
    14% (7)
  • B
    8% (4)
  • C
    74% (37)
  • D
    4% (2)

Community Discussion

No community discussion yet for this question.

Full 1Z0-860 Practice