0 Replies Latest reply on Oct 4, 2016 10:21 AM by bevor

    Global valve in JBoss 7.1.1?

    bevor Newbie

      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>