I am used to chain exceptions on server side. It makes the debug much easier.
With my design some application exception may contains chain references to 
technical exception. When this exception are thrown, as it is application 
exception they are thrown to the client. Client does not contain in its 
classpath chained technical exceptions. Consequently on client side, I have a 
ClassNotFoundException and on server side I have no traces.

My problem is to know how to continue to chain exception and server side and 
before sending exception to the client, just remove chained exception, log on 
the server side and set in the excpetion thrown to the client a reference (a 
timestanp for example) to be able to find the exception in server logs.

Do it exists pattern, good practice for that kinds of thinks ?

Do you have other ideas to manage such chained exception and continue to have 
clear exception on client ?


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3919276#3919276

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3919276


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to