GeeCON Prague 2014*
The moose likes Servlets and the fly likes How to catch exception thrown from ejbStore Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "How to catch exception thrown from ejbStore" Watch "How to catch exception thrown from ejbStore" New topic
Author

How to catch exception thrown from ejbStore

Shakti Sharma
Ranch Hand

Joined: Dec 19, 2000
Posts: 60
I have a servlet which is calling entity bean, in entity beans store method I am throwing Application Exception, but in servlet I am not able to catch this exception ,instead of my application exception I get TransactionRolledBack exception, which I think is throwen from the container when I mark transaction for rollback only in entity beans store method. Can anybody suggest me how I can catch my application exception in servlet.
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Moving to Servlets.


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
GeeCON Prague 2014
 
subject: How to catch exception thrown from ejbStore