There's lots of ways. If you want every servlet counted, you can write a javax.servlet.Filter (You can filter depending on URL pattern so you can be selective if you want) which passes an HttpServletResponseWrapper which you would write along the filter chain.
This wrapper's getOutputStream() method would return an OutputStream subclass of your own making which counts bytes written. getWriter() would use getOutputStream(). You would then declare your filter in your web.xml descriptor. If it's just one servlet that you are fully in control of, then don't call out.write() directly, call it through a method which counts the bytes. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3913733#3913733 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3913733 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
