Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Question from ejbcertificate.com

 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!!!
 
Ranch Hand
Posts: 775
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ..
 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
javax.ejb.TransactionRolledbackLocalException !
 
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Slime does not pay. Always keep your tiny ad dry.
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic