aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
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
 
Consider Paul's rocket mass heater.
 
subject: Pass EJB ApplicationException to web