Try OpenEdge Now
skip to main content
Administration
REST Administration : REST Management Agent Administration : Installing and Configuring REST Management Agent : Customizing Apache Tomcat Environment using the protc utility : Examples of proset script files
 
Examples of proset script files
The following is an example of the proset.bat file:
Table 72. proset.bat
@echo off
rem
rem Customize a personal instance of %DLC%/servers/tomcat
rem This file should be located in your %WRKDIR% directory where
rem it will be found by %DLC%/bin/protc.bat
rem
if not "%WRKDIR%"=="" goto DOSET
echo "environment variable WRKDIR is not defined"
goto END
:DOSET
rem OpenEdge specific Tomcat customizations
rem
set OPENEDGE_HTTP_PORT=8980
set OPENEDGE_SHUTDOWN_PORT=8908
rem set OPENEDGE_HTTPS_PORT=18943
rem set OPENEDGE_AJP13_PORT=18909
set OPENEDGE_WEBAPPS=%WRKDIR%\webapps
rem Set OPENEDGE_REST_JARS only if you want to do compact WAR deployment
rem set OPENEDGE_REST_JARS=%DLC%/rest/lib/*.jar
rem Override standard Tomcat (catalina) variables
rem
set CATALINA_TMPDIR=%WRKDIR%
set CATALINA_OUT=%WRKDIR%/catalina.out
set CATALINA_PID=%WRKDIR%/tomcat.pid
:END
The following is an example of the proset.env file:
Table 73. proset.env
#!/bin/sh
## Customized a personal instance of $DLC/servers/tomcat
# This file should be located in your $WRKDIR directory where
# it will be found by $DLC/bin/protc
#if [ "${WRKDIR}" = "" ]
then
echo "environment variable WRKDIR is not defined"
exit 1
fi
## OpenEdge specific Tomcat customizations
#OPENEDGE_HTTP_PORT=8980 ; export OPENEDGE_HTTP_PORT
OPENEDGE_SHUTDOWN_PORT=8908 ; export OPENEDGE_SHUTDOWN_PORT
#OPENEDGE_AJP13_PORT=8909 ; export OPENEDGE_AJP13_PORT
# OPENEDGE_HTTPS_PORT=8943 ; export OPENEDGE_HTTPS_PORT
OPENEDGE_WEBAPPS="$WRKDIR/webapps" ; export OPENEDGE_WEBAPPS
# OPENEDGE_REST_JARS="$DLC/rest/lib/*.jar" ; export OPENEDGE_REST_JARS
## Override standard Tomcat (catalina) variables
#CATALINA_TMPDIR="$WRKDIR" ; export CATALINA_TMPDIR
CATALINA_OUT="$WRKDIR/catalina.out" ; export CATALINA_OUT
CATALINA_PID="$WRKDIR/tomcat.pid" ; export CATALINA_PID
## Add JAVA options to what is set by catalina.sh and setenv.sh
##JAVA_OPTS="" ; export JAVA_OPTS