You can write an Filter that can be plugged in to GateIn, thank to extension machanism.
There is an example : GATEIN/sample/extension/jar/src/main/java/org/exoplatform/sample/ext/web/SampleFilter.java
This filter implement interface : org.exoplatform.web.filter.Filter . As you can see this is not normal J2EE filter, it's not configured in web.xml . You can find out its configuration at : GATEIN/sample/extension/war/src/main/webapp/WEB-INF/conf/sample-ext/web/web-inf-extension-configuration.xml
thank you very much for your answer Vu Viet, i couldn´t find the sample folder
where should it be on a gatein 3.2 jboss 5?
ah, sorry, here is the right path, i hope it's what you need