I have a spring mvc portlet that remotely calls an ejb 3. Now when the ejb throws an exception, on the portal side I just see ‘EJB Exception’. I do not have access to the actual ejb 3 logs. So what can I do so that the whole exception stack trace is available on the portal side?
Share
You can catch the EJBException (note that it’s a RuntimeException, so, your code is not ‘required’ to catch it) and then call the getCausedByException method, to have access to the original exception. With it, you can do whatever you want, including rethrow it.