This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 26
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: 136
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: 26
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Runtime error in the business function
 
Similar Threads
chars using the + operator
compile time exception vs runtime exception
Handling user requests/errors printing on ajax app
Exception Handling
Dan's question