Dear all, Probably I have a simple problem but I cannot find the solution. I have my XMLRPC backend running fine on a web application through a servlet.
Now what I would like to do is to wrap each method call into a try/catch/finally because of some initialization/cleanup that I need to perform at every method call. So I was wondering if there was a clean way for replacing the RelfectiveXmlRpcHandler and its execute method (that as far as I understand is the place where the invocation occurs) so that I can do something like: class MyReflectiveXmlRpcHandler extends ReflectiveXmlRpcHandler { ... Object execute(XmlRpcRequest request) throws XmlRpcException { try { //My setup here super.execute(request) } catch(XmlRpcException e) { throw e; } finally { //My cleanup } } } Where and how should I register this extended ReflectiveXmlRpcHandler? Is there a code snippet for such a use case? Thank you for your help. Cheers, Fabio