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 @EJB to inject a reference to the EJB 3.0 business interface into the EJB 2.1 bean class.

B.
Use <ejB. ref> in ejB. jar.xml for the EJB 2.1 bean to declare a reference to the EJB 3.0
business interface.

C.
Add an EJB 3.0-style business 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.



Leave a Reply 0

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