Este conteúdo não está disponível no idioma selecionado.
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_MODULEPATH
environment variable.For Linux, use a colon to delimit a list of directories. For example:Example 7.5.
JBOSS_MODULEPATH
environment variableexport JBOSS_MODULEPATH=EAP_HOME/modules/:/home/username/external/modules/directory/
For Windows, use a semicolon to delimit a list of directories. For example:Example 7.6.
JBOSS_MODULEPATH
environment variableSET JBOSS_MODULEPATH=EAP_HOME\modules\;D:\JBoss-Modules\
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_MODULEPATH
variable in the JBoss EAP startup configuration file. If you are running a standalone server, this is theEAP_HOME/bin/standalone.conf
file. If the server is running in a managed domain, this is theEAP_HOME/bin/domain.conf
file.The following is an example of the command that sets theJBOSS_MODULEPATH
variable in thestandalone.conf
file:Example 7.7.
standalone.conf
entryJBOSS_MODULEPATH="EAP_HOME/modules/:/home/username/external/modules/directory/"