Oracle
1Z0-860 · Question #199
XYZ Software develops business components using both the EJB 2.1 and EJB 3.0 APIs. Some customers are reluctant to completely migrate to the EJB 3.0 model, but are willing to have EJB 2.1 session…
The correct answer is D. Use @RemoteHome and @LocalHome to adapt EJB 3.0 beans so that EJB 2.1 beans can look up the. See the full explanation below for the reasoning.
Question
XYZ Software develops business components using both the EJB 2.1 and EJB 3.0 APIs. Some customers are reluctant to completely migrate to the EJB 3.0 model, but are willing to have EJB 2.1 session beans invoke EJB 3.0 session beans. How should XYZ Software enhance these components to meet this customer requirement?
Options
- AUse @EJB to inject a reference to the EJB 3.0 business interface into the EJB 2.1 beanclass.
- BUse <ejb-ref> in ejb-jar.xml for the EJB 2.1 bean to declare a reference to the EJB3.0 business
- CAddan EJB3.0-style business interface to EJB 2.1 beans to achieve interoperability between EJB 2.1
- DUse @RemoteHome and @LocalHome to adapt EJB 3.0 beans so that EJB 2.1 beans can look up the
How the community answered
(49 responses)- A4% (2)
- B8% (4)
- C4% (2)
- D84% (41)
Community Discussion
No community discussion yet for this question.