1) Have 2 Servlet2 Servletfilter front ends AxisServlet and manipulate the response accordingly OR Inside the AxisServlet do a response.sendRedirect() and to preserve the session state dispatcher.forward(request,response) http://72.14.209.104/search?q=cache:xs6Q6eoarlEJ:dsg.port.ac.uk/projects/students/undergrad/2004/mat_webb.pdf+%22AxisServlet%22+AND+%22redirect%22+AND+%22response%22&hl=en&gl=us&ct=clnk&cd=19
... ********************************************************************* This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. ----- Original Message ----- From: "Veprinsky, Michael" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Thursday, July 27, 2006 1:16 PM Subject: Re: Using factory to instantiate service object Martin, I am not sure this message will be added to the thread... I don't think I understand your reply. If you were pointing out an example of handler, thank you. However, the problem is that I don't know if handlers can be used for what I need (my current understanding is that they cannot). It seems that handlers work in dispatch model, where main flow invokes handlers and this enables pre- and post-processing but not interception. What I need is a filter (as in servlet specification filters) or a Proxy (as in java.lang.reflect.Proxy) between AxisServlet and my service object to capture and translate exceptions. Not sure if this makes much sense :-\ Basically, in Proxy I would have an InvokationHandler and in it I would have public Object invoke(...) try{ method.invoke(mylocalclasswithouthanling, params); }catch(Throwable ex){ ... (process and convert throwable) throw new AxisFault(...); } Last note: Filter is really mentioned just as an example, it's not usable in the context since it would be hit after all serialization/deserialization was done. In order to process exceptions there I would have to parse XML - does not make much sense. ___________________ Words can never express what words can never express -- /usr/bin/fortune --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
