How to enable valve in JBoss EAP 6

Solution Verified - Updated -

Issue

  • How do I enable a valve in JBoss EAP 6?
  • In previous versions of JBoss it was possible to configure Tomcat Valves by adding jar to $JBOSS_HOME/server/$PROFILE/lib and setting in:

    • JBoss EAP 4.x:
      • $JBOSS_HOME/server/$PROFILE/deploy/jboss-web.deployer/server.xml
        or
      • $JBOSS_HOME/server/$PROFILE/deploy/jboss-web.deployer/context.xml
    • JBoss EAP 5.x:
      • $JBOSS_HOME/server/$PROFILE/deploy/jbossweb.sar/server.xml
        or
      • $JBOSS_HOME/server/$PROFILE//deploy/jbossweb.sar/context.xml

    How can the same be achieved in JBoss EAP 6.x?

  • We have a customised Valve class to whitelist specific paths in a request. Is it possible to make our application dependent on this module instead of loaded as global module?

Environment

  • JBoss Enterprise Application Platform (EAP) 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content