Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
9.4. Install a Global Valve
Global valves must be packaged and installed as static modules in JBoss EAP 6. This task shows how to install the module.
Pre-requisities:
- The valve must already be created and packaged in a JAR file.
- A
module.xmlfile must already be created for the module.Refer to Section 7.1.1, “Modules” for an example ofmodule.xmlfile.
Procedure 9.1. Install a Global Module
Create module installation directory
A directory for the module to be installed in must be created in the modules directory of the application server.EAP_HOME/modules/system/layers/base/MODULENAME/main
EAP_HOME/modules/system/layers/base/MODULENAME/mainCopy to Clipboard Copied! Toggle word wrap Toggle overflow mkdir -P EAP_HOME/modules/system/layers/base/MODULENAME/main
$ mkdir -P EAP_HOME/modules/system/layers/base/MODULENAME/mainCopy to Clipboard Copied! Toggle word wrap Toggle overflow Copy files
Copy the JAR andmodule.xmlfiles to the directory created in step 1.cp MyValves.jar module.xml EAP_HOME/modules/system/layers/base/MODULENAME/main
$ cp MyValves.jar module.xml EAP_HOME/modules/system/layers/base/MODULENAME/mainCopy to Clipboard Copied! Toggle word wrap Toggle overflow
The valve classes declared in the module are now available to be configured in the web subsystem.