How should XYZ Software enhance these components to meet this customer requirement?

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?

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.

Explanation:



Leave a Reply 0

Your email address will not be published. Required fields are marked *