This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
From the option given for the above question,I think second option is the correct answer.But in the site option (5) is given as the right answer.According to me if option (5) is correct then option (4) should also be the correct answer.Pls clarify.
Is the exception thrown is dependent on the transaction Attribute?
Also what I noted is with Bean Managed Transaction Demarcation, the exception thrown is javax.ejb.EJBException for local client.Pls clarify
Thanks and Regards Shiv
Joined: Sep 29, 2002
Please reread the question carefully. The information is there to tell you if the question is correct or incorrect. This is the kind of question that can easily cost you points in the real exam if you are just a little careless of if you do not know the exception hierarchy.
Let me give you another hint: what is the difference between an exception thrown to a local client and an exception thrown to a remote client?
As far as point 2nd is concerned in the bean class you can catch the application exception and can continue the transaction(may be calling other methods ) after checking that the transaction has not been marked for rollback but the client can't do the same.
Hope that helps.
Sawan<br />SCJP,SCWCD,SCBCD<br /> <br />Every exit is an entry somewhere.
Joined: Mar 24, 2005
Thanks for the feedback.Perhaps I need to read the question a little careful.