Forums Register Login

Exception Question

+Pie Number of slices to send: Send
From the list of possible options select what a bean provider should do in each of following scenarios.Assume that they all take place within a business method of a session bean.

Options
A. Throws an EJBException
B. Throw a RemoteException
c. Invoke setRollbackOnly
D. Allow the exception to propagate

Scenarios

1. U catch a checked exception in your ejbActivate method.The method is not
in a transaction.

2. A DivideByZero exc. occurs as your business logic is running.U don't
have a try/catch for this.

3. u throw a CreateException from your ejbCreate() method, and you realize
that u probably can't safely complete your transaction.

4. You catch a checked exception in a business method, and realize that
your bean is probably corrupt.

Regards
Maybe he went home and went to bed. And took this tiny ad with him:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 519 times.
Similar Threads
Sharpen your pencil page 547
Sharpen excercise on page 547(Exception)
Sharpen your pencil in page 547 of HFE !
Exception-Doubt
Kathy need your help -> Sharpen Your Pencil pg:547
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 02:37:28.