Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Pass EJB ApplicationException to web Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Pass EJB ApplicationException to web" Watch "Pass EJB ApplicationException to web" New topic
Forums: EJB Certification (SCBCD/OCPJBCD) EJB and other Java EE Technologies
Author

Pass EJB ApplicationException to web

eid hazim
Greenhorn

Joined: Jul 24, 2011
Posts: 6
I have EJB class, custom exception and web back end bean classes, i want to catch the custom exception in the web if the EJB pass the exception, but the EJBException catch the exception as System Exception??

EJB5184:A system exception occurred during an invocation on EJB

Exception Class:


EJB Class:


Backend Class:
eid hazim
Greenhorn

Joined: Jul 24, 2011
Posts: 6
The issue is after i cover the main Exception with the custom Exception, there are system exception happen, so the custom Exception doesn't pass, only the system exception is pass
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Pass EJB ApplicationException to web
 
Similar Threads
Unable to throw back Custom Exception from EJB (3.0 version) to Web layer
Application Exception in MDB
Exceptions for garbage collection?
Custom Exception
question on EJB 3 IN ACTION - application exception rollback