[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Propagation of exceptions to client
timfox
do-not-reply at jboss.com
Thu Jul 20 11:56:31 EDT 2006
I'm wondering what our strategy should be for propagating server exceptions to clients.
If an exception occurs on the server side during an invocation of one of the methods on the JMS api, should we
a) Wrap it in a JMSException with the original exception as the rootcause in the jmsexception? Problem with this is the class of the original exception might not exist on the client side giving a ClassNotFoundException
b) Log the root cause on the server side, and rethrow a JMSException that does not contain the original message. (I lean towards this)
c) Something else?
Also how should we deal with RuntimeExceptions and Errors? Should we catch these too on the server side and rethrow JMSException?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959618#3959618
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959618
More information about the jboss-dev-forums
mailing list