jbossmigrationjboss7.xjboss-eap-6jboss-4.2.x

Custom SSO ValveBase configuration in jBoss EAP 6.2 (migrating from 4.2)


I am migrating from jBoss EAP 4.2 to 6.2 and stuck at migration of SSO simulator valve implementation.

In jBoss EAP 4.2, I have config(in server.xml) like this to simulate/push SSO and other properties in request header for localhost only.

    <Valve className="com.xyz.xyz.xyz.xyz.SSOSimulatorValve" simFile="${jboss.server.home.dir}/lib/ssosim.properties" />

How should i migrate/configure this in jBoss EAP 6.2?


Solution

  • I was able to define the SSO Simulator valve in jBoss EAP 6.x using following in jboss-web.xml

    <valve>
        <class-name>x.y.z.SSOSimulatorValve</class-name>
        <param>
            <param-name>propFile</param-name>
            <param-value>${jboss.server.base.dir}\lib\ssoSimulatorProperties.properties
            </param-value>
        </param>
    </valve>