what is the expected result?

A developer writes a stateful session bean with local business interface Bar containing method
test. Method test is implemented as
11. ©Remove
12. public void testfj {}
A business method in a stateless session bean invokes a reference to bean Bar as follows :
11. @EJB Bar bar; 12.
13. public void foo0 {
14. bar.testfj;
15. bar.testO;
16.}
Assuming execution reaches Line 15, what is the expected result?

A developer writes a stateful session bean with local business interface Bar containing method
test. Method test is implemented as
11. ©Remove
12. public void testfj {}
A business method in a stateless session bean invokes a reference to bean Bar as follows :
11. @EJB Bar bar; 12.
13. public void foo0 {
14. bar.testfj;
15. bar.testO;
16.}
Assuming execution reaches Line 15, what is the expected result?

A.
Method foo returns withouterror.

B.
Ajavax.ejb.NoSuchEJBException is thrown.

C.
Ajava.rmi.NoSuchObjectException is thrown.

D.
Ajavax.ejb.NoSuchEntityException is thrown.



Leave a Reply 0

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