Does anyone have correct answers of sharpen your pencil on pg.547?
Here is the question.
From the list of possible options, select what you, as a bean provider, should do in each of the following scenarios. Assume that they all take place within a business method of a session bean.
Optons (you may use an option more than once)
A. Throw an EJBException B. Throw a RemoteException C. Invoke setRollbackOnly() D. Allow the exception to propagate(in other words, duck it)
1. You catch a checked exception in your ejbActivate() method. The method is not in a transaction. 2. A DivideByZero exception occurs as your business logic is running. You do not have a try/catch for this. 3. You throw a CreateException from your ejbCreate() method, and your realize that you probably cannot safely complete your transaction. 4. You catch a checked exception in a business method and realize that your bean is probably corrupt.
SCBCD, SCWCD, SCJP
We must storm this mad man's lab and destroy his villanous bomb! Are you with me tiny ad?