posted 20 years ago
I came across this question in ejbcertificate mock exam
Which of the following statements regarding message-driven bean exception handling are true?
1. Message-driven beans throw both application exceptions and system exceptions.
2. If a system exception is thrown by a method, the transaction is always rolled back by the container.
3. If a system exception is thrown by a method, the bean instance is always discarded.
4. If a system exception is thrown by a method, the client does not receive the exception.
5. If an application exception is thrown by a method, the client receives the exception.
Answer given: 3, 4.
I did not understand why option 4 is correct. I thought the client will receive a EJBException/RemoteException when a system exception occurs.