Hello,
this is a follow up question to this one: SSLValve on JBoss AS 7.1.1?
My valve should catch all requests from all applications deployed in JBoss. Currently it only catches requests from the application where this jboss-web.xml below is applied:
<!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 5.0//EN" "jboss-web_5_0.dtd"> <jboss-web> <context-root>myapplication-backendservice</context-root> <passivation-config> <use-session-passivation>false</use-session-passivation> </passivation-config> <valve> <class-name>com.mydomain.myapplication.valve.ExceptionLoggingValve</class-name> <param> <param-name>allow</param-name> <param-value>*</param-value> </param> </valve> </jboss-web>
ctomc wrote, that the jboss-web.xml does not have to be used in each deployed application (see original posting), but this does not seem to work. So what is exactly the solution to define a global valve in JBoss 7.1.1 and is this upwards compatible at all, since the mechanism works in 7.2 completely different again (obviously it's to define in standalone then)?