aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Runtime error in the business function Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Runtime error in the business function" Watch "Runtime error in the business function" New topic
Author

Runtime error in the business function

GeethGubi Gubendran
Greenhorn

Joined: Jul 31, 2006
Posts: 28
I was asked what happens if there is a runtime error in the business function of EJB. I answered the application stops abruptly. Is it a right answer?


Cheers,<br />Geetha
Rajesh So
Ranch Hand

Joined: Oct 08, 2002
Posts: 141
I am no expert. I guess the stateful bean will get destroyed if there is a runtime exception in one of the methods. I believe the answer - 'application stops abruptly' may look very abstract.
You may have to validate my answer with a better source.
GeethGubi Gubendran
Greenhorn

Joined: Jul 31, 2006
Posts: 28
nope.. I found the answer. If there is any runtime error, then that error is wrapped by a remote exception and does if any clean up process then throw remote exception. Can someone validate this?
 
 
subject: Runtime error in the business function