File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes what happens to EJB's after throwing exception to client? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "what happens to EJB Watch "what happens to EJB New topic
Author

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

yamini nadella
Ranch Hand

Joined: Apr 13, 2004
Posts: 257
If Statefull/ stateless /entity beans throw exception to client then what is the status of Beans?

is there pooling for statefull session beans?
Sagar Kar
Greenhorn

Joined: Sep 03, 2004
Posts: 25
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.


Warm regards,<br />Sagar Kar.<br />SCJP 1.4, SCBCD 1.3
Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
...or to my cheat sheet on Bean exceptions ...


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what happens to EJB's after throwing exception to client?