• Post Reply Bookmark Topic Watch Topic
  • New Topic

Exception Question  RSS feed

gloxinia libidinous
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

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


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.

Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!