-
1. Re: Hide JBoss internal exceptions from the client
f.ulbricht Jul 25, 2012 7:28 AM (in response to f.ulbricht)I tried it by using an intercepter that intercepts any exception and transforms it into some usefull exception (e.g. with an error code for our support team) without adding the cause. Works fine for exceptions thrown WITHIN the method. Any container exception (e.g. PersistenceException) will be thrown AFTER my interceptor was invoked. So, still no luck...
Regards,
Frank.
-
2. Re: Hide JBoss internal exceptions from the client
f.ulbricht Jul 25, 2012 9:15 AM (in response to f.ulbricht)I found another way. When I create a facade with another session bean with transaction attribute NEVER, I can invoke the original bean locally. The transaction will be over before the method of my facade bean ends. No an interceptor around the facade method call can catch the exception and convert it to something useful. It is a solution but finally it means that I have to duplicate all interface methods in my facade beans...
Regards,
Frank.