OPTION B: Beans methods should wrap unrecoverable checked exceptions in a javax.ejb.JBException.
for me "unrecoverable checked exceptions" means : - RemoteException and its Sublclasses such as: - NoSuchObjectException - TransactionRequiredException - TransactionRolledbackException
First, does it make sense?
Second, if the first question is correct...why should i be wrapping the execptions above in a EJBException ? Besides, why should i be wrapping the execptions above in a EJBException if the client was a remote client??
Please guys advice!!!
Tks so much!!!
SCJP | SCWCD | SCBCD | SCWSD 5 | SCEA (I) 1.4 | SCEA 5 | IBM SOA 669
Hi Felipe To me Unrecoverable checked exception means not only remote exception it can be any checked application exception from which the bean method could not recover. so if such exception occur the client can't do anything in catch block so as to avoid handling the exception at client end the bean method wraps that exception in javax.ejb.EJBException and throws that to container & depending upon the client is local or remote the container throw back the EJBException or RemoteException...