Which code, inserted at Line 15, portably looks up the injected resource?

Given the following code in an EJB session bean:

Which code, inserted at Line 15, portably looks up the injected resource?

Given the following code in an EJB session bean:

Which code, inserted at Line 15, portably looks up the injected resource?

A.
Object obj = ic.lookup (�employeeDB�);

B.
Object obj = ic.lookup (�dataSource�);

C.
Object obj = ic.lookup (�jdbc/employeeDB�);

D.
Object obj = ic.lookup (�java:comp/env/employeeDB�);

E.
Object obj= ic.lookup (�java:cmp/env/jdbc/employeeDB);



Leave a Reply 0

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