• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ejbcertificate mock example

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which of the following statements regarding message-driven bean exception handling are true? [Check all correct answers]

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.

Given Correct Ans:3,4

But i guess even 2 is also correct.

Comments please.

Thanks,
Prashant
 
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If the onMessage() method has a trans attribute of NotSupported, it will run in an unspecified transaction context - which means that the Container can do whatever it likes.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic