[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Propagation of exceptions to client

ovidiu.feodorov@jboss.com do-not-reply at jboss.com
Fri Jul 21 15:31:03 EDT 2006


Tim wrote : 
  | In this case the exception is thrown from the postgresql driver. Why should the client have to have all the jars in server/lib in their classpath just so they can see exceptions. That sucks IMO
  | 

It certainly does. This is not what I had in mind. I was suggesting to wrap the Messaging server-side exception and forward it to client to provide some sort of information about what happened. In this particular case, the client would receive an exception thrown by our persistence manager saying that there are are problems with the database. No need to send a postgres driver exception class over the wire. The messaging exception classes should be in the client-side messaging jar, no additional effort required here.

For more details, obviously the server administrator has to consult the logs, where the database exception must be logged.

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

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



More information about the jboss-dev-forums mailing list