Please find the question from one of the mock Exams..
Q1. If a remote client in a transaction context invokes a business method on a bean with container-managed transaction, the client receives ______ if the bean instance throws a non-application exception? [Enter exception including its package name]
The answer given is javax.transaction.TransactionRolledbackException
But in EJB book page 551 it is given that TransactionRolledbackException is in javax.ejb package.
Can any one say which one is correct..
Thanks in Advance.
posted 12 years ago
I strongly agree with you. I guess the HFE make a mistake. There is only javax.transaction.TransactionRolledbackException and javax.ejb.TransactionRolledbackLocalException.