Which exception can be received in the client as a result of invoking the work method?

Given :
I. public class MyExceplion extends Exception {}
The remote business interface Foo declares a method workQ:
5. public void work0 throws MyException;
The bean class FooBean contains the following:
10.©Stateless
II. @Remote(Foo.class)
12. public class FooBean {
13. public void workQ throws MyException {
14. throw new MyException0;
15.}
Which exception can be received in the client as a result of invoking the work method?

Given :
I. public class MyExceplion extends Exception {}
The remote business interface Foo declares a method workQ:
5. public void work0 throws MyException;
The bean class FooBean contains the following:
10.©Stateless
II. @Remote(Foo.class)
12. public class FooBean {
13. public void workQ throws MyException {
14. throw new MyException0;
15.}
Which exception can be received in the client as a result of invoking the work method?

A.
a MyException

B.
ajavax.ejb.ConcurrentAccessException

C.
a javax. ejb. EJBException that wraps an instance of MyException as the rootcause

D.
aJava.rmi. RemoteExceptionthatwraps an instance ofMyExceptionas the root cause



Leave a Reply 0

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