File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes ejbcertificate mock example Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "ejbcertificate mock example" Watch "ejbcertificate mock example" New topic
Author

ejbcertificate mock example

Prashu Negu
Greenhorn

Joined: Mar 04, 2005
Posts: 11
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
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
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.


SCJP 1.4, SCWCD 1.3, SCBCD 1.3
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ejbcertificate mock example
 
Similar Threads
Doubt on Whizlabs Mock Test Question
system exceptions
Mock exam questions on MDB (2)
should the container discards the ejb instance when an application exception thrown?
Whizlabs Exam Simulator