Exit 1Z0-860 Java Enterprise Edition 5 Business Component Developer Certified Professional
Question 5 of 5
0% complete
Q5 Single choice

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?

  • A

    Use @EJBtoinjectareference totheEJB 3.0 businessinterfaceinto the EJB 2.1beanclass.

  • B

    Use <ejb-ref> in ejb-jar.xml for theEJB 2.1 beanto declare a reference tothe EJB3.0 business interface.

  • C

    Addan EJB3.0-stylebusiness interface to EJB 2.1 beans to achieve interoperability between EJB 2.1 and EJB 3.0 beans.

  • D

    Use @RemoteHome and @LocalHome to adapt EJB 3.0 beans so that EJB 2.1 beans can look up the
    adapted home interfaces using JNDI.