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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...