Win a copy of Kubernetes in Action this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

what happens to EJB's after throwing exception to client?  RSS feed

 
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If Statefull/ stateless /entity beans throw exception to client then what is the status of Beans?

is there pooling for statefull session beans?
 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Depends on what kind of exception was thrown:
For an Application Exception(checked exception), the instance is not destroyed
For an Non Application Exception(Runtime Exceptions), the instance is not used anymore and the resources are cleaned up by the container.

For more depth answer please refer to the EJB specs.
 
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
...or to my cheat sheet on Bean exceptions ...
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!