To set the configuration folder, you need to set the variable com.aia_itp.itpols.config to the full path to the configuration folder that was created in section Creating the Configuration Folder.
To configure this in JBoss, locate the following lines in the file run.bat, which is part of the JBoss installation:
echo =====================================================
echo.
echo JBoss Bootstrap Environment
echo.
echo JBOSS_HOME: %JBOSS_HOME%
echo.
echo JAVA: %JAVA%
echo.
echo JAVA_OPTS: %JAVA_OPTS%
echo.
echo CLASSPATH: %JBOSS_CLASSPATH%
echo.
echo ==========================================================
echo.
Immediately above these lines, add the following lines:
rem Setup the ITP Server config location
set JAVA_OPTS=%JAVA_OPTS% -Dcom.aia_itp.itpols.config=<path>
Then, replace <path> by the full path to the ITP/OnLine configuration folder. After adding these lines, the JBoss server must be restarted.
Note:
These instructions are only valid when JBoss is started using run.bat. It is also possible that JBoss is configured to run as a service. In this case, add the option -Dcom.aia_itp.itpols.config=<path> to the parameters that are passed to the Java process that runs JBoss. The exact details of how this should be done depends on the method that is being used to run JBoss as a service.
Note:
The run.bat code snippet above is from the JBoss 5.0.1 run.bat file. The contents of run.bat may differ slightly between JBoss 5 versions. It is important that the com.aia_itp.itpols.config variable is added to the JAVA_OPTS before the JAVA_OPTS are actually used.