This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

Pass EJB ApplicationException to web

eid hazim

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

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
Have you checked out Aspose?
subject: Pass EJB ApplicationException to web
It's not a secret anymore!