This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Mock Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Mock Question" Watch "Mock Question" New topic
Author

Mock Question

Amirr Rafique
Ranch Hand

Joined: Nov 14, 2005
Posts: 324
Please explain following question's answer from javabeat

A method of business interface of CMT bean throws non-application exception, then the client will receive :- (choose two best answers)

1.javax.ejb.EJBTransactionRolledbackexception if bean executes within caller's transaction and with required transaction attribute
2.Javax.ejb.EJBException if bean executes within transaction started by container, and with requiresNew transaction attribute
3.Java.rmi.RemoteException if bean executes within caller's transaction and with required transaction attribute
4.Javax.ejb.EJBException if bean executes within caller's transaction and with Mandatory transaction attribute



Correct answer is 1, 2


"Know where to find the solution and how to use it - that's the secret of success."
 
 
subject: Mock Question
 
Similar Threads
When is a Bean Discarded?
Transaction Q
Question from ejbcertificate.com on Exception
setRollBackOnly() not working
jdiscuss question