How to enable valve in JBoss EAP 6
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
andsetting 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?
- JBoss EAP 4.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.