This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of Darcy DeClute's Scrum Master Certification Guide: The Definitive Resource for Passing the CSM and PSM Exams and have Darcy DeClute on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown

Exception Question

Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

You get good luck from rubbing the belly of a tiny ad:
a bit of art, as a gift, that will fit in a stocking
    Bookmark Topic Watch Topic
  • New Topic