This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
Answer mentions that only 5 is the right answer. 4 is similar to 5 the only difference being that 4 is for a local client and 5 is for a remote client. Why 4 is not right?
Which one of the following statements regarding the client view of exceptions received from an enterprise bean invocation is correct?
1. The client can safely continue the transaction by retrying the operation if an application exception is received.
2. The client can safely continue the transaction by retrying the operation if an application exception is received, but only after checking the transaction has not been marked for rollback.
3. The client can safely continue the transaction by retrying the operation if a non-application exception is received.
4. A local client cannot continue a transaction if javax.transaction.TransactionRolledbackLocalException is received.
1. The client can safely continue the transaction by retrying the operation if an application exception is received.
-- TRUE
2. The client can safely continue the transaction by retrying the operation if an application exception is received, but only after checking the transaction has not been marked for rollback.
-- TRUE
3. The client can safely continue the transaction by retrying the operation if a non-application exception is received.
-- FALSE
4. A local client cannot continue a transaction if javax.transaction.TransactionRolledbackLocalException is received.
-- TRUE (the transaction meant to rollback or already rolled back. So continuing the transaction is fruitless)