Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
7.5. Define an External JBoss Module Directory
By default, JBoss EAP looks for modules in the EAP_HOME/modules/ directory. You can direct JBoss EAP to look in one or more external directories by defining a JBOSS_MODULEPATH environment variable or by setting the variable in the startup configuration file. This topic describes both methods.
Procedure 7.3. Set the JBOSS_MODULEPATH Environment Variable
- To specify one or more external module directories, define the
JBOSS_MODULEPATHenvironment variable.For Linux, use a colon to delimit a list of directories. For example:Example 7.5.
JBOSS_MODULEPATHenvironment variableexport JBOSS_MODULEPATH=EAP_HOME/modules/:/home/username/external/modules/directory/
export JBOSS_MODULEPATH=EAP_HOME/modules/:/home/username/external/modules/directory/Copy to Clipboard Copied! Toggle word wrap Toggle overflow For Windows, use a semicolon to delimit a list of directories. For example:Example 7.6.
JBOSS_MODULEPATHenvironment variableSET JBOSS_MODULEPATH=EAP_HOME\modules\;D:\JBoss-Modules\
SET JBOSS_MODULEPATH=EAP_HOME\modules\;D:\JBoss-Modules\Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Procedure 7.4. Set the JBOSS_MODULEPATH Variable in the Startup Configuration File
- If you prefer not to set a global environment variable, you can set the
JBOSS_MODULEPATHvariable in the JBoss EAP startup configuration file. If you are running a standalone server, this is theEAP_HOME/bin/standalone.conffile. If the server is running in a managed domain, this is theEAP_HOME/bin/domain.conffile.The following is an example of the command that sets theJBOSS_MODULEPATHvariable in thestandalone.conffile:Example 7.7.
standalone.confentryJBOSS_MODULEPATH="EAP_HOME/modules/:/home/username/external/modules/directory/"
JBOSS_MODULEPATH="EAP_HOME/modules/:/home/username/external/modules/directory/"Copy to Clipboard Copied! Toggle word wrap Toggle overflow