Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SCBCD certification / why this answer?

 
M Mistroni
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
i was trying to do some mock exam at ejbcerficate.com, found following question

Which one of the following statements regarding the client view of exceptions received from an enterprise bean invocation is correct? Exceptions

Incorrect, you chose answer 4. The correct answer is 5.

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.
5. A remote client cannot continue a transaction if javax.transaction.TransactionRolledbackException is received.


Why 4 is wrong? according to explanation

Answer 4 is incorrect. javax.transaction.TransactionRolledbackException indicates to a local client that the transaction has definitely been marked for rollback. This exception is a subclass of javax.ejb.EJBException.

but i still dont get it..... if the client receives a TransactionRolledbackLocalExcepiton, it's pointless to continue.. isnt' it?
 
wise owen
Ranch Hand
Posts: 2023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thread 1 and Thread 2
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic