• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Runtime error in the business function

 
GeethGubi Gubendran
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Rajesh So
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic