Operating Development Environment

This chapter describes how to operate the integrated server provided by ProFrame.

1. Starting an Integrated Server

Integrated server is a JEUS-based application. Starting the integrated server means starting JEUS. For details on starting JEUS, refer to JEUS Administrator Guide.

2. Starting a Log Server

Log Server is a server demonstration used to execute UNIX commands such as compile or log viewer in ProFrame development tools. The server also notifies the result after executing the command executed in the tool of ProFrame.

The location of log server is as follows:

$PRJROOT/package/proframe/logserver
Setting for Log Server Port

Set the log server port of the 'PORT_NO' entry in the logserver.sh file as follows.

#!/bin/sh

export EXEC_FILE=$PFMROOT/../logserver/logserver.jar
export LOG_FILE=$PFMROOT/../logserver/logserver.log
export ERR_FILE=$PFMROOT/../logserver/logserver.err
export PORT_NO={PORT_NO}

echo ""
echo " --------------------------"
echo " PFM LOG SERVER BOOT START "
echo " --------------------------"
echo ""
export PFMLOGSVR_PID=`ps -ef |grep "$PFMROOT/../logserver/logserver.jar" | grep -v grep | awk '{print $2}'`
if [ "$PFMLOGSVR_PID" != "" ]; then
    echo ""
    echo " ------------------------------------------"
    echo " PFM LOG SERVER ALREADY BOOTED "
    echo " ------------------------------------------"
    echo ""
    exit 1
fi

nohup java \
-cp $EXEC_FILE \
-Dfile.encoding=EUC-KR \
-Dpfm.log.basedir=$PFMLOG \
-Dpfm.log.service=false \
-Dpfm.log.infix.ulog=usr \
-Dpfm.log.infix.slog=sys \
-Dpfm.log.timeout=50000 \
com.tmax.proframe.logviewer.server.LogServer $PORT_NO 1> $LOG_FILE 2>$ERR_FILE &
if [ "$?" -ne "0" ]
then
    echo ""
    echo " ------------------------------------------"
    echo " PFM LOG SERVER BOOT ERROR "
    echo " ------------------------------------------"
    echo ""
    exit 1
fi

echo ""
echo " --------------------------"
echo " PFM LOG SERVER BOOT DONE "
echo " --------------------------"
echo ""
exit 0
Starting Log Server

Execute the following command to start the log server.

$> logserver.sh

You can check whether the log server starts normally with the following command.

$> ps –ef | grep logserver
Terminating Log Server

Terminate the log server with the following command.

$> logsvrdown.sh

3. Starting Build Server

Build server is a server demonstration used to perform the work in the remote location designated when the source (resource storage, check-in/check-out, etc.) is created through the studio during the development of ProFrame. It is a dedicated server for creating files to speed up in creating files through the existing log server.

To use the build server, set the build server dedicated port and then start the server. The client that uses the build server is the integrated server. Add the build server information to the project information of pfmdevsvr.xml described in Setting Environment of Integrated Server. The build server must be installed in the same location as the log server.

$PRJROOT/package/proframe/logserver

Log server must be installed for multi-project function by default. However, the build server can be selectively installed as an extension module to improve file handling performance.

Build Server Port Settings

Set the build server port in the 'TCP_PORT_NO' item of the pfmbuildsvr.sh file as follows:

#!/bin/sh

export LOG_EXEC_FILE=$PFMROOT/../logserver/logserver.jar
export TCP_EXEC_FILE=$PFMROOT/../logserver/pfmbuildsvr.jar
export TCP_LOG_FILE=$PFMROOT/../logserver/pfmbuildsvr.log
export TCP_ERR_FILE=$PFMROOT/../logserver/pfmbuildsvr.err
export CLASSPATH=${CLASSPATH}:$LOG_EXEC_FILE
export CLASSPATH=${CLASSPATH}:$TCP_EXEC_FILE
export TCP_PORT_NO={PORT_NO}

echo ""
echo " ---------------------------"
echo " PFM BUILD SERVER BOOT START"
echo " ---------------------------"
echo ""
export PFMBUILDSVR_PID=`ps -ef |grep "$PFMROOT/../logserver/pfmbuildsvr.jar" | grep -v grep | awk '{print $2}'`
if [ "$PFMBUILDSVR_PID" != "" ]; then
    echo ""
    echo " ------------------------------------------"
    echo " PFM BUILD SERVER ALREADY BOOTED"
    echo " ------------------------------------------"
    echo ""
    exit 1
fi

nohup java \
-cp $TCP_EXEC_FILE \
-Dfile.encoding=EUC-KR \
-Dpfm.log.basedir=$PFMLOG \
-classpath $CLASSPATH com.tmax.proframe.pfmbuildsvr.tcp.PfmBuildServer $TCP_PORT_NO 1> $TCP_LOG_FILE 2>$TCP_ERR_FILE &

if [ "$?" -ne "0" ]
then
    echo ""
    echo " ------------------------------------------"
    echo " PFM BUILD SERVER BOOT ERROR"
    echo " ------------------------------------------"
    echo ""
    exit 1
fi

echo ""
echo " --------------------------"
echo " PFM BUILD SERVER BOOT DONE"
echo " --------------------------"
echo ""
exit 0
Starting Build Server

Executes the following command to start the build server.

$> pfmbuildsvr.sh

You can check whether the build server starts normally with the following command.

$> ps –ef | grep pfmbuildsvr
Terminating Build Server

Terminates the build server with the following command.

$> pfmbuildsvrdown.sh