XML-RPC and Servlet Filter Issue
"bob.jensen" <[email protected]> Thu, 02 Aug 2007 21:32:01 -0000
| Newsgroups | gmane.text.xml.rpc.specification |
|---|---|
| Message-ID | <[email protected]> |
Is there any way to use a ServletFilter with XML-RPC?
When I a filter that has the following code, the XML-RPC reply happens
before the exception. I am using a servlet filter to handle
transaction code, but this won't work if the reply is sent before the
filter is finished. The database commit happens after the reply is
sent :(
Any ideas on how to fix/work around this?
thanks
Bob
public void doFilter(ServletRequest servletRequest,
ServletResponse servletResponse,FilterChain filterChain) throws
IOException, ServletException {
System.out.println("********** TestServletFilter called
**********");
// Call the next filter (continue request processing)
filterChain.doFilter(servletRequest, servletResponse);
throw new RuntimeException("Boom from servlet filter");
}
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/xml-rpc/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/xml-rpc/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[email protected]
mailto:[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/