Page. 564 #4
Which of the following are
EJB 2.0 specification guidelines regarding system exception?
.
.
B. Bean methods should wrap unrecoverable checked exception in a javax.ejb.EJBException exception.
C. For remote clients, bean methods should wrap unrecoverable checked exception in a java.rmi.RemoteException.
Answer is B only.
Why c is not correct? I know checked exception includes RemoteException, and container will handle that, no problem here. But there might not other unrecoverable checked exceptions, you will want to let container handle the rollback, clean up process by wrapping them up as RemoteException. :roll:
Thanks
Shiang