• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question from ejbcertificate.com

 
Venkatesh Kumar
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all:
This is one of the questions from ejbcertificate.com
Which one of the following statements regarding the client view of exceptions received from an enterprise bean invocation is correct?
ANS:
A..A local client cannot continue a transaction if javax.transaction.TransactionRolledbackLocalException is received
B..A remote client cannot continue a transaction if javax.transaction.TransactionRolledbackException is received
Given answer is B .I think answer A is correct .Any comments!!!
 
Reid M. Pinchback
Ranch Hand
Posts: 775
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sneaky. B is correct. Hint: look really, really close at the Java.
 
Venkatesh Kumar
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Reid,
Th reason I said that answer A is correct was that TransactionRolledbackLocalException is a subclass of EJBException,Runtime Exception .If a runtime exception occurs the container rolls back the transaction and the client cannot continue ..
 
R.x Lan
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
javax.ejb.TransactionRolledbackLocalException !
 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Venkatesh Kumar:

Which one of the following statements regarding the client view of exceptions received from an enterprise bean invocation is correct?
A..A local client cannot continue a transaction if javax.transaction.TransactionRolledbackLocalException is received
B..A remote client cannot continue a transaction if javax.transaction.TransactionRolledbackException is received
Given answer is B .I think answer A is correct .Any comments!!!

Originally posted by Rixin Lan:
javax.ejb.TransactionRolledbackLocalException !

Together both the posts throw more light
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,
Well, I am not good at decrypting messages. So, can someone please write in an english language for me about this instead of little cute messages?
Regards
Maulin
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic