The equivalent of a valve is a HttpHandler, you can wire them up programatically via jboss-web.xml, something like: