aspose file tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Application Exceptions Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Reply Bookmark "Application Exceptions" Watch "Application Exceptions" New topic
Author

Application Exceptions

nitin pai
Ranch Hand

Joined: May 30, 2006
Posts: 185
What happens if I declare a custom Exception and throw it in the method of an EJB. Will it reach my client if it calls the EJB remotely?
Or will a remote exception be throw in such a case?



bernard savary
Ranch Hand

Joined: Jan 09, 2008
Posts: 91
hi nitin
It depends whether your exception is a checked or unchecked exception . In case of checked exception it will reach the client , in case of unchecked it will be considered as system exception and a EJBException will be sent to the client. However we can have a unchecked exception propagate to client as it is by marking it with @ApplicationException .
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Application Exceptions
 
Similar Threads
page 543 (wrapping and rethrowing as an EJBException)
to exit from a function
Application Exception in MDB
how to replicate a remote exception in a dev env?
Question about SCBCD Study Guide by Mikalai Zaikin