Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

A Question

 
Panah Rad
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys, Does anybody know the answer to the following question?
Which of the following statements regarding exception handling in EJBs are true? Please note this question is not from a real exam.
A
The bean provider is responsible for performing any clean up actions before throwing a non-application exception.
B
The container always discards an enterprise bean instance if one of its business methods throws a non-application exception.
C
A local client cannot continue a transaction if javax.ejb.TransactionRolledbackLocalException is received.
D
A transaction is automatically rolled back by the container if the client initiated the transaction and the bean's business method resulted in an application exception.
E
Message-driven bean methods cannot throw application exceptions to the client.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!