intermax 추가

This commit is contained in:
2024-04-05 11:46:34 +09:00
parent 80ff9c2066
commit 43afe1356b
795 changed files with 146887 additions and 0 deletions

View File

@@ -0,0 +1,299 @@
#! /bin/sh
# Copyright 2001-2005 The Apache Software Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Extract launch and ant arguments, (see details below).
ant_exec_args=
no_config=false
use_jikes_default=false
ant_exec_debug=false
show_help=false
for arg in "$@" ; do
if [ "$arg" = "--noconfig" ] ; then
no_config=true
elif [ "$arg" = "--usejikes" ] ; then
use_jikes_default=true
elif [ "$arg" = "--execdebug" ] ; then
ant_exec_debug=true
elif [ my"$arg" = my"--h" -o my"$arg" = my"--help" ] ; then
show_help=true
ant_exec_args="$ant_exec_args -h"
else
if [ my"$arg" = my"-h" -o my"$arg" = my"-help" ] ; then
show_help=true
fi
ant_exec_args="$ant_exec_args \"$arg\""
fi
done
# Source/default ant configuration
if $no_config ; then
rpm_mode=false
usejikes=$use_jikes_default
else
# load system-wide ant configuration
if [ -f "/etc/ant.conf" ] ; then
. /etc/ant.conf
fi
# load user ant configuration
if [ -f "$HOME/.ant/ant.conf" ] ; then
. $HOME/.ant/ant.conf
fi
if [ -f "$HOME/.antrc" ] ; then
. "$HOME/.antrc"
fi
# provide default configuration values
if [ -z "$rpm_mode" ] ; then
rpm_mode=false
fi
if [ -z "$usejikes" ] ; then
usejikes=$use_jikes_default
fi
fi
# Setup Java environment in rpm mode
if $rpm_mode ; then
if [ -f /usr/share/java-utils/java-functions ] ; then
. /usr/share/java-utils/java-functions
set_jvm
set_javacmd
fi
fi
# OS specific support. $var _must_ be set to either true or false.
cygwin=false;
darwin=false;
case "`uname`" in
CYGWIN*) cygwin=true ;;
Darwin*) darwin=true
if [ -z "$JAVA_HOME" ] ; then
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
fi
;;
esac
if [ -z "$ANT_HOME" -o ! -d "$ANT_HOME" ] ; then
## resolve links - $0 may be a link to ant's home
PRG="$0"
progname=`basename "$0"`
# need this for relative symlinks
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$link"
fi
done
ANT_HOME=`dirname "$PRG"`/..
# make it fully qualified
ANT_HOME=`cd "$ANT_HOME" && pwd`
fi
# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin ; then
[ -n "$ANT_HOME" ] &&
ANT_HOME=`cygpath --unix "$ANT_HOME"`
[ -n "$JAVA_HOME" ] &&
JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
fi
# set ANT_LIB location
ANT_LIB="${ANT_HOME}/lib"
if [ -z "$JAVACMD" ] ; then
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
else
JAVACMD=`which java 2> /dev/null `
if [ -z "$JAVACMD" ] ; then
JAVACMD=java
fi
fi
fi
if [ ! -x "$JAVACMD" ] ; then
echo "Error: JAVA_HOME is not defined correctly."
echo " We cannot execute $JAVACMD"
exit 1
fi
# Build local classpath using just the launcher in non-rpm mode or
# use the Jpackage helper in rpm mode with basic and default jars
# specified in the ant.conf configuration. Because the launcher is
# used, libraries linked in ANT_HOME will also be include, but this
# is discouraged as it is not java-version safe. A user should
# request optional jars and their dependencies via the OPT_JAR_LIST
# variable
if $rpm_mode && [ -f /usr/bin/build-classpath ] ; then
LOCALCLASSPATH="$(/usr/bin/build-classpath ant ant-launcher jaxp_parser_impl xml-commons-apis)"
# If the user requested to try to add some other jars to the classpath
if [ -n "$OPT_JAR_LIST" ] ; then
_OPTCLASSPATH="$(/usr/bin/build-classpath $OPT_JAR_LIST 2> /dev/null)"
if [ -n "$_OPTCLASSPATH" ] ; then
LOCALCLASSPATH="$LOCALCLASSPATH:$_OPTCLASSPATH"
fi
fi
# Explicitly add javac path to classpath, assume JAVA_HOME set
# properly in rpm mode
if [ -f "$JAVA_HOME/lib/tools.jar" ] ; then
LOCALCLASSPATH="$LOCALCLASSPATH:$JAVA_HOME/lib/tools.jar"
fi
if [ -f "$JAVA_HOME/lib/classes.zip" ] ; then
LOCALCLASSPATH="$LOCALCLASSPATH:$JAVA_HOME/lib/classes.zip"
fi
# if CLASSPATH_OVERRIDE env var is set, LOCALCLASSPATH will be
# user CLASSPATH first and ant-found jars after.
# In that case, the user CLASSPATH will override ant-found jars
#
# if CLASSPATH_OVERRIDE is not set, we'll have the normal behaviour
# with ant-found jars first and user CLASSPATH after
if [ -n "$CLASSPATH" ] ; then
# merge local and specified classpath
if [ -z "$LOCALCLASSPATH" ] ; then
LOCALCLASSPATH="$CLASSPATH"
elif [ -n "$CLASSPATH_OVERRIDE" ] ; then
LOCALCLASSPATH="$CLASSPATH:$LOCALCLASSPATH"
else
LOCALCLASSPATH="$LOCALCLASSPATH:$CLASSPATH"
fi
# remove class path from launcher -cp option
CLASSPATH=""
fi
else
# not using rpm_mode; use launcher to determine classpaths
if [ -z "$LOCALCLASSPATH" ] ; then
LOCALCLASSPATH=$ANT_LIB/ant-launcher.jar
else
LOCALCLASSPATH=$ANT_LIB/ant-launcher.jar:$LOCALCLASSPATH
fi
fi
if [ -n "$JAVA_HOME" ] ; then
# OSX hack to make Ant work with jikes
if $darwin ; then
OSXHACK="${JAVA_HOME}/../Classes"
if [ -d "${OSXHACK}" ] ; then
for i in "${OSXHACK}"/*.jar
do
JIKESPATH="$JIKESPATH:$i"
done
fi
fi
fi
# Allow Jikes support (off by default)
if $usejikes; then
ANT_OPTS="$ANT_OPTS -Dbuild.compiler=jikes"
fi
# For Cygwin, switch paths to appropriate format before running java
# For PATHs convert to unix format first, then to windows format to ensure
# both formats are supported. Probably this will fail on directories with ;
# in the name in the path. Let's assume that paths containing ; are more
# rare than windows style paths on cygwin.
if $cygwin; then
if [ "$OS" = "Windows_NT" ] && cygpath -m .>/dev/null 2>/dev/null ; then
format=mixed
else
format=windows
fi
ANT_HOME=`cygpath --$format "$ANT_HOME"`
ANT_LIB=`cygpath --$format "$ANT_LIB"`
JAVA_HOME=`cygpath --$format "$JAVA_HOME"`
LCP_TEMP=`cygpath --path --unix "$LOCALCLASSPATH"`
LOCALCLASSPATH=`cygpath --path --$format "$LCP_TEMP"`
if [ -n "$CLASSPATH" ] ; then
CP_TEMP=`cygpath --path --unix "$CLASSPATH"`
CLASSPATH=`cygpath --path --$format "$CP_TEMP"`
fi
CYGHOME=`cygpath --$format "$HOME"`
fi
# Show script help if requested
if $show_help ; then
echo $0 '[script options] [options] [target [target2 [target3] ..]]'
echo 'Script Options:'
echo ' --help, --h print this message and ant help'
echo ' --noconfig suppress sourcing of /etc/ant.conf,'
echo ' $HOME/.ant/ant.conf, and $HOME/.antrc'
echo ' configuration files'
echo ' --usejikes enable use of jikes by default, unless'
echo ' set explicitly in configuration files'
echo ' --execdebug print ant exec line generated by this'
echo ' launch script'
echo ' '
fi
# add a second backslash to variables terminated by a backslash under cygwin
if $cygwin; then
case "$ANT_HOME" in
*\\ )
ANT_HOME="$ANT_HOME\\"
;;
esac
case "$CYGHOME" in
*\\ )
CYGHOME="$CYGHOME\\"
;;
esac
case "$JIKESPATH" in
*\\ )
JIKESPATH="$JIKESPATH\\"
;;
esac
case "$LOCALCLASSPATH" in
*\\ )
LOCALCLASSPATH="$LOCALCLASSPATH\\"
;;
esac
case "$CLASSPATH" in
*\\ )
CLASSPATH="$CLASSPATH\\"
;;
esac
fi
# Execute ant using eval/exec to preserve spaces in paths,
# java options, and ant args
ant_sys_opts=
if [ -n "$CYGHOME" ]; then
if [ -n "$JIKESPATH" ]; then
ant_sys_opts="-Djikes.class.path=\"$JIKESPATH\" -Dcygwin.user.home=\"$CYGHOME\""
else
ant_sys_opts="-Dcygwin.user.home=\"$CYGHOME\""
fi
else
if [ -n "$JIKESPATH" ]; then
ant_sys_opts="-Djikes.class.path=\"$JIKESPATH\""
fi
fi
ant_exec_command="exec \"$JAVACMD\" $ANT_OPTS -classpath \"$LOCALCLASSPATH\" -Dant.home=\"$ANT_HOME\" -Dant.library.dir=\"$ANT_LIB\" $ant_sys_opts org.apache.tools.ant.launch.Launcher $ANT_ARGS -cp \"$CLASSPATH\" $ant_exec_args"
if $ant_exec_debug ; then
echo $ant_exec_command
fi
eval $ant_exec_command

View File

@@ -0,0 +1,126 @@
@echo off
REM Copyright 2001,2004-2005 The Apache Software Foundation
REM
REM Licensed under the Apache License, Version 2.0 (the "License");
REM you may not use this file except in compliance with the License.
REM You may obtain a copy of the License at
REM
REM http://www.apache.org/licenses/LICENSE-2.0
REM
REM Unless required by applicable law or agreed to in writing, software
REM distributed under the License is distributed on an "AS IS" BASIS,
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
REM See the License for the specific language governing permissions and
REM limitations under the License.
if exist "%HOME%\antrc_pre.bat" call "%HOME%\antrc_pre.bat"
if "%OS%"=="Windows_NT" @setlocal
if "%OS%"=="WINNT" @setlocal
rem %~dp0 is expanded pathname of the current script under NT
set DEFAULT_ANT_HOME=%~dp0..
if "%ANT_HOME%"=="" set ANT_HOME=%DEFAULT_ANT_HOME%
set DEFAULT_ANT_HOME=
set _USE_CLASSPATH=yes
rem Slurp the command line arguments. This loop allows for an unlimited number
rem of arguments (up to the command line limit, anyway).
set ANT_CMD_LINE_ARGS=%1
if ""%1""=="""" goto doneStart
shift
:setupArgs
if ""%1""=="""" goto doneStart
if ""%1""==""-noclasspath"" goto clearclasspath
set ANT_CMD_LINE_ARGS=%ANT_CMD_LINE_ARGS% %1
shift
goto setupArgs
rem here is there is a -noclasspath in the options
:clearclasspath
set _USE_CLASSPATH=no
shift
goto setupArgs
rem This label provides a place for the argument list loop to break out
rem and for NT handling to skip to.
:doneStart
rem find ANT_HOME if it does not exist due to either an invalid value passed
rem by the user or the %0 problem on Windows 9x
if exist "%ANT_HOME%\lib\ant.jar" goto checkJava
rem check for ant in Program Files
if not exist "%ProgramFiles%\ant" goto checkSystemDrive
set ANT_HOME=%ProgramFiles%\ant
goto checkJava
:checkSystemDrive
rem check for ant in root directory of system drive
if not exist %SystemDrive%\ant\lib\ant.jar goto checkCDrive
set ANT_HOME=%SystemDrive%\ant
goto checkJava
:checkCDrive
rem check for ant in C:\ant for Win9X users
if not exist C:\ant\lib\ant.jar goto noAntHome
set ANT_HOME=C:\ant
goto checkJava
:noAntHome
echo ANT_HOME is set incorrectly or ant could not be located. Please set ANT_HOME.
goto end
:checkJava
set _JAVACMD=%JAVACMD%
if "%JAVA_HOME%" == "" goto noJavaHome
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe
goto checkJikes
:noJavaHome
if "%_JAVACMD%" == "" set _JAVACMD=java.exe
:checkJikes
if not "%JIKESPATH%"=="" goto runAntWithJikes
:runAnt
if "%_USE_CLASSPATH%"=="no" goto runAntNoClasspath
if not "%CLASSPATH%"=="" goto runAntWithClasspath
"%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" "-Dant.home=%ANT_HOME%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% %ANT_CMD_LINE_ARGS%
goto end
:runAntNoClasspath
"%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" "-Dant.home=%ANT_HOME%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% %ANT_CMD_LINE_ARGS%
goto end
:runAntWithClasspath
"%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" "-Dant.home=%ANT_HOME%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% -cp "%CLASSPATH%" %ANT_CMD_LINE_ARGS%
goto end
:runAntWithJikes
if "%_USE_CLASSPATH%"=="no" goto runAntWithJikesNoClasspath
if not "%CLASSPATH%"=="" goto runAntWithJikesAndClasspath
:runAntWithJikesNoClasspath
"%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" "-Dant.home=%ANT_HOME%" "-Djikes.class.path=%JIKESPATH%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% %ANT_CMD_LINE_ARGS%
goto end
:runAntWithJikesAndClasspath
"%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" "-Dant.home=%ANT_HOME%" "-Djikes.class.path=%JIKESPATH%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% -cp "%CLASSPATH%" %ANT_CMD_LINE_ARGS%
goto end
:end
set _JAVACMD=
set ANT_CMD_LINE_ARGS=
if "%OS%"=="Windows_NT" @endlocal
if "%OS%"=="WINNT" @endlocal
:mainEnd
if exist "%HOME%\antrc_post.bat" call "%HOME%\antrc_post.bat"

View File

@@ -0,0 +1,92 @@
/*
Copyright 2003-2004 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Run ant
*/
'@echo off'
parse arg mode envarg '::' antarg
if mode\='.' & mode\='..' & mode\='/' then do
envarg = mode envarg
mode = ''
end
if antarg = '' then do
antarg = envarg
envarg = ''
end
x = setlocal()
env="OS2ENVIRONMENT"
antenv = _getenv_('antenv')
if _testenv_() = 0 then interpret 'call "' || antenv || '"' '"' || envarg || '"'
if mode = '' then mode = _getenv_('ANT_MODE' '..')
if mode \= '/' then do
runrc = _getenv_('runrc')
antrc = _getenv_('antrc' 'antrc.cmd')
if mode = '..' then mode = '-r'
else mode = ''
interpret 'call "' || runrc || '"' antrc '"' || mode || '"'
end
if _testenv_() = 0 then do
say 'Ant environment is not set properly'
x = endlocal()
exit 16
end
settings = '-Dant.home=' || ANT_HOME '-Djava.home=' || JAVA_HOME
java = _getenv_('javacmd' 'java')
opts = value('ANT_OPTS',,env)
args = value('ANT_ARGS',,env)
lcp = value('LOCALCLASSPATH',,env)
cp = value('CLASSPATH',,env)
if value('ANT_USE_CP',,env) \= '' then do
if lcp \= '' & right(lcp, 1) \= ';' then lcp = lcp || ';'
lcp = lcp || cp
'SET CLASSPATH='
end
if lcp\='' then lcp = '-classpath' lcp
cmd = java opts lcp '-jar' ANT_HOME ||'\lib\ant-launcher.jar' settings args antarg
launcher = stream(ANT_HOME ||'\lib\ant-launcher.jar', 'C', 'query exists')
if launcher = '' then entry = 'org.apache.tools.ant.Main'
else entry = 'org.apache.tools.ant.launch.Launcher'
java opts lcp entry settings args antarg
x = endlocal()
return rc
_testenv_: procedure expose env ANT_HOME JAVA_HOME
ANT_HOME = value('ANT_HOME',,env)
if ANT_HOME = '' then return 0
JAVA_HOME = value('JAVA_HOME',,env)
if JAVA_HOME = '' then return 0
cp = translate(value('CLASSPATH',,env))
if pos(translate(ANT_HOME), cp) = 0 then return 0
if pos(translate(JAVA_HOME), cp) = 0 then return 0
return 1
_getenv_: procedure expose env
parse arg envar default
if default = '' then default = envar
var = value(translate(envar),,env)
if var = '' then var = default
return var

View File

@@ -0,0 +1,26 @@
#!/bin/sh
#
# Copyright 2001-2002,2004 The Apache Software Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#
# Args: DIR command
cd "$1"
CMD="$2"
shift
shift
exec "$CMD" "$@"

View File

@@ -0,0 +1,47 @@
@echo off
REM
REM Copyright 2001-2002,2004-2005 The Apache Software Foundation
REM
REM Licensed under the Apache License, Version 2.0 (the "License");
REM you may not use this file except in compliance with the License.
REM You may obtain a copy of the License at
REM
REM http://www.apache.org/licenses/LICENSE-2.0
REM
REM Unless required by applicable law or agreed to in writing, software
REM distributed under the License is distributed on an "AS IS" BASIS,
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
REM See the License for the specific language governing permissions and
REM limitations under the License.
REM
REM
if "%OS%"=="Windows_NT" @setlocal
if "%OS%"=="WINNT" @setlocal
if ""%1""=="""" goto runCommand
rem Change drive and directory to %1
if "%OS%"=="Windows_NT" cd /d ""%1""
if not "%OS%"=="Windows_NT" cd ""%1""
shift
rem Slurp the command line arguments. This loop allows for an unlimited number
rem of agruments (up to the command line limit, anyway).
set ANT_RUN_CMD=%1
if ""%1""=="""" goto runCommand
shift
:loop
if ""%1""=="""" goto runCommand
set ANT_RUN_CMD=%ANT_RUN_CMD% %1
shift
goto loop
:runCommand
rem echo %ANT_RUN_CMD%
%ANT_RUN_CMD%
if "%OS%"=="Windows_NT" @endlocal
if "%OS%"=="WINNT" @endlocal

View File

@@ -0,0 +1,65 @@
#!/usr/bin/perl
#
# Copyright 2001,2003-2004 The Apache Software Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#######################################################################
#
# antRun.pl
#
# wrapper script for invoking commands on a platform with Perl installed
# this is akin to antRun.bat, and antRun the SH script
#
# created: 2001-10-18
# author: Jeff Tulley jtulley@novell.com
#######################################################################
#be fussy about variables
use strict;
#turn warnings on during dev; generates a few spurious uninitialised var access warnings
#use warnings;
#and set $debug to 1 to turn on trace info (currently unused)
my $debug=1;
#######################################################################
# change drive and directory to "%1"
my $ANT_RUN_CMD = @ARGV[0];
# assign current run command to "%2"
chdir (@ARGV[0]) || die "Can't cd to $ARGV[0]: $!\n";
if ($^O eq "NetWare") {
# There is a bug in Perl 5 on NetWare, where chdir does not
# do anything. On NetWare, the following path-prefixed form should
# always work. (afaict)
$ANT_RUN_CMD .= "/".@ARGV[1];
}
else {
$ANT_RUN_CMD = @ARGV[1];
}
# dispose of the first two arguments, leaving only the command's args.
shift;
shift;
# run the command
my $returnValue = system $ANT_RUN_CMD, @ARGV;
if ($returnValue eq 0) {
exit 0;
}
else {
# only 0 and 1 are widely recognized as exit values
# so change the exit value to 1
exit 1;
}

View File

@@ -0,0 +1,99 @@
/*
Copyright 2003-2004 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Ant environment
*/
'@echo off'
call RxFuncAdd "SysLoadFuncs", "RexxUtil", "SysLoadFuncs"
call SysLoadFuncs
/* Prepare the parameters for later use */
parse arg argv
mode = ''
args = ''
opts = ''
cp = ''
lcp = ''
do i = 1 to words(argv)
param = word(argv, i)
select
when param='-lcp' then mode = 'l'
when param='-cp' | param='-classpath' then mode = 'c'
when abbrev('-opts', param, 4) then mode = 'o'
when abbrev('-args', param, 4) then mode = 'a'
otherwise
select
when mode = 'a' then args = space(args param, 1)
when mode = 'c' then cp = space(cp param, 1)
when mode = 'l' then lcp = space(lcp param, 1)
when mode = 'o' then opts = space(opts param, 1)
otherwise
say 'Option' param 'ignored'
end
end
end
env="OS2ENVIRONMENT"
antconf = _getenv_('antconf' 'antconf.cmd')
runrc = _getenv_('runrc')
interpret 'call "' || runrc || '"' '"' || antconf || '"' 'ETC'
ANT_HOME = value('ANT_HOME',,env)
JAVA_HOME = value('JAVA_HOME',,env)
classpath = value('CLASSPATH',,env)
classes = stream(JAVA_HOME || "\lib\classes.zip", "C", "QUERY EXISTS")
if classes \= '' then classpath = prepend(classpath classes)
classes = stream(JAVA_HOME || "\lib\tools.jar", "C", "QUERY EXISTS")
if classes \= '' then classpath = prepend(classpath classes)
classpath = prepend(classpath ANT_HOME || '\lib\ant-launcher.jar')
'SET CLASSPATH=' || classpath
/* Setting classpathes, options and arguments */
envset = _getenv_('envset')
if cp\='' then interpret 'call "' || envset || '"' '"; CLASSPATH"' '"' || cp || '"'
if lcp\='' then interpret 'call "' || envset || '"' '"; LOCALCLASSPATH"' '"' || lcp || '"'
if opts\='' then interpret 'call "' || envset || '"' '"-D ANT_OPTS"' '"' || opts || '"'
if args\='' then interpret 'call "' || envset || '"' '"ANT_ARGS"' '"' || args || '"'
exit 0
addpath: procedure
parse arg path elem
if elem = '' then do
if path\='' & right(path, 1)\=';' then path = path || ';'
return path
end
if substr(path, length(path)) = ';' then glue = ''
else glue = ';'
if pos(translate(elem), translate(path)) = 0 then path = path || glue || elem || ';'
return path
prepend: procedure
parse arg path elem
if elem = '' then do
if path\='' & right(path, 1)\=';' then path = path || ';'
return path
end
if pos(translate(elem), translate(path)) = 0 then path = elem || ';' || path
return path
_getenv_: procedure expose env
parse arg envar default
if default = '' then default = envar
var = value(translate(envar),,env)
if var = '' then var = default
return var

View File

@@ -0,0 +1,113 @@
#!/usr/bin/perl
#
# Copyright 2001,2004 The Apache Software Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# A script to allow Bash or Z-Shell to complete an Ant command-line.
#
# To install for Bash 2.0 or better, add the following to ~/.bashrc:
#
# $ complete -C complete-ant-cmd ant build.sh
#
# To install for Z-Shell 2.5 or better, add the following to ~/.zshrc:
#
# function ant_complete () {
# local args_line args
# read -l args_line
# set -A args $args_line
# set -A reply $(COMP_LINE=$args_line complete-ant-cmd ${args[1]} $1)
# }
# compctl -K ant_complete ant build.sh
#
# @author Mike Williams <mikew@cortexebusiness.com.au>
my $cmdLine = $ENV{'COMP_LINE'};
my $antCmd = $ARGV[0];
my $word = $ARGV[1];
my @completions;
if ($word =~ /^-/) {
list( restrict( $word, getArguments() ));
} elsif ($cmdLine =~ /-(f|buildfile)\s+\S*$/) {
list( getBuildFiles($word) );
} else {
list( restrict( $word, getTargets() ));
}
exit(0);
sub list {
for (@_) {
print "$_\n";
}
}
sub restrict {
my ($word, @completions) = @_;
grep( /^\Q$word\E/, @completions );
}
sub getArguments {
qw(-buildfile -debug -emacs -f -find -help -listener -logfile
-logger -projecthelp -quiet -verbose -version);
}
sub getBuildFiles {
my ($word) = @_;
grep( /\.xml$/, glob( "$word*" ));
}
sub getTargets {
# Look for build-file
my $buildFile = 'build.xml';
if ($cmdLine =~ /-(f|buildfile)\s+(\S+)/) {
$buildFile = $2;
}
return () unless (-f $buildFile);
# Run "ant -projecthelp" to list targets. Keep a cache of results in a
# cache-file.
my $cacheFile = $buildFile;
$cacheFile =~ s|(.*/)?(.*)|${1}.ant-targets-${2}|;
if ((!-e $cacheFile) || (-M $buildFile) < (-M $cacheFile)) {
open( CACHE, '>'.$cacheFile ) || die "can\'t write $cacheFile: $!\n";
open( HELP, "$antCmd -projecthelp -f '$buildFile'|" ) || return();
my %targets;
while( <HELP> ) {
if (/^\s+(\S+)/) {
$targets{$1}++;
}
}
my @targets = sort keys %targets;
for (@targets) { print CACHE "$_\n"; }
return @targets;
}
# Read the target-cache
open( CACHE, $cacheFile ) || die "can\'t read $cacheFile: $!\n";
my @targets;
while (<CACHE>) {
chop;
s/\r$//; # for Cygwin
push( @targets, $_ );
}
close( CACHE );
@targets;
}

View File

@@ -0,0 +1,130 @@
/*
Copyright 2003-2004 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
SET environment variables
First optional parameter:
; parameters are considered parts of a path variable, semicolons are
appended to each element if not already present
-D parameters are properties for Java or Makefile etc., -D will be
prepended and the parameters will be separated by a space
=D the same as above but equal sign is not required
, parameters should be comma separated in the environment variable
- parameters should be separated by the next parameter
Other values mean that the first parameter is missing and the environment
variable will be set to the space separated parameters
Second parameter: name of the environment variable
Next parameters: values
; implies that the equal sign is considered a part of the parameter and is
not interpreted
-D requires parameters in the form name=value. If the equal sign is not found,
the parameters are changed to name=expanded_name
Other options have optional equal sign. If it is found, only the part after
the equal sign will be oprionally expanded.
If the parameter is the minus sign, the next parameter will not be expanded.
If the parameter is a single dot, it will be replaced with the value of the
environment variable as it existed before envset was invoked.
For other parameters the batch looks for the environment variable with the
same name (in uppercase). If it is found, it forms the expanded_name. If
the environment variable with such a name does not exist, the expanded_name
will hold the parameter name without case conversion.
*/
parse arg mode envar args
equal = 0
sep = ' '
/* Parse command line parameters */
select
when mode='-' then do
sep = envar
parse var args envar args
end
when mode=';' then do
sep = ''
equal = -1
end
when mode='-D' then equal = 1
when mode='=D' then mode = '-D'
when mode=',' then sep = ','
otherwise
args = envar args
envar = mode
mode = ''
end
env = 'OS2ENVIRONMENT'
envar = translate(envar)
orig = value(envar,,env)
newval = ''
expand = 1
/* for each parameter... */
do i = 1 to words(args)
if expand > 0 & word(args, i) = '-' then expand = 0
else call addval word(args, i)
end
/* Optionally enclose path variable by quotes */
if mode = ';' & pos(' ', newval) > 0 then newval = '"' || newval || '"'
/* Set the new value, 'SET' cannot be used since it does not allow '=' */
x = value(envar, newval, env)
exit 0
addval: procedure expose sep equal orig expand newval mode env
parse arg var
if var = '.' then expvar = orig
else do
if equal >= 0 then do
parse var var name '=' val
if val = '' then var = name
else var = val
end
if expand = 0 then expvar = var
else expvar = value(translate(var),,env)
if expvar = '' then expvar = var
if equal >= 0 then do
if val = '' then do
parse var expvar key '=' val
if val <> '' then name = key
else do
if equal > 0 then val = key
else name = key
end
end
else val = expvar
if pos(' ', val) > 0 | pos('=', val) > 0 then val = '"' || val || '"'
if val = '' then expvar = name
else expvar = name || '=' || val
end
if mode = '-D' then expvar = '-D' || expvar
if mode = ';' then do
if right(expvar, 1) <> ';' then expvar = expvar || ';'
end
end
if newval = '' then newval = expvar
else newval = newval || sep || expvar
expand = 1
return

View File

@@ -0,0 +1,30 @@
REM
REM Copyright 2001-2004 The Apache Software Foundation
REM
REM Licensed under the Apache License, Version 2.0 (the "License");
REM you may not use this file except in compliance with the License.
REM You may obtain a copy of the License at
REM
REM http://www.apache.org/licenses/LICENSE-2.0
REM
REM Unless required by applicable law or agreed to in writing, software
REM distributed under the License is distributed on an "AS IS" BASIS,
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
REM See the License for the specific language governing permissions and
REM limitations under the License.
REM
REM
set _CLASSPATHCOMPONENT=%1
if ""%1""=="""" goto gotAllArgs
shift
:argCheck
if ""%1""=="""" goto gotAllArgs
set _CLASSPATHCOMPONENT=%_CLASSPATHCOMPONENT% %1
shift
goto argCheck
:gotAllArgs
set LOCALCLASSPATH=%_CLASSPATHCOMPONENT%;%LOCALCLASSPATH%

View File

@@ -0,0 +1,152 @@
#!/usr/bin/perl
#
# Copyright 2000-2004 The Apache Software Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#######################################################################
#
# runant.pl
#
# wrapper script for invoking ant in a platform with Perl installed
# this may include cgi-bin invocation, which is considered somewhat daft.
# (slo: that should be a separate file which can be derived from this
# and returns the XML formatted output)
#
# the code is not totally portable due to classpath and directory splitting
# issues. oops. (NB, use File::Spec::Functions will help and the code is
# structured for the catfile() call, but because of perl version funnies
# the code is not included.
#
# created: 2000-8-24
# author: Steve Loughran steve_l@sourceforge.net
#######################################################################
#
# Assumptions:
#
# - the "java" executable/script is on the command path
# - ANT_HOME has been set
# - target platform uses ":" as classpath separator or perl indicates it is dos/win32
# - target platform uses "/" as directory separator.
#be fussy about variables
use strict;
#platform specifics (disabled)
#use File::Spec::Functions;
#turn warnings on during dev; generates a few spurious uninitialised var access warnings
#use warnings;
#and set $debug to 1 to turn on trace info
my $debug=1;
#######################################################################
#
# check to make sure environment is setup
#
my $HOME = $ENV{ANT_HOME};
if ($HOME eq "")
{
die "\n\nANT_HOME *MUST* be set!\n\n";
}
my $JAVACMD = $ENV{JAVACMD};
$JAVACMD = "java" if $JAVACMD eq "";
my $onnetware = 0;
if ($^O eq "NetWare")
{
$onnetware = 1;
}
my $oncygwin = ($^O eq "cygwin");
#ISSUE: what java wants to split up classpath varies from platform to platform
#and perl is not too hot at hinting which box it is on.
#here I assume ":" 'cept on win32, dos, and netware. Add extra tests here as needed.
my $s=":";
if(($^O eq "MSWin32") || ($^O eq "dos") || ($^O eq "cygwin") ||
($onnetware == 1))
{
$s=";";
}
#build up standard classpath
my $localpath = "$HOME/lib/ant-launcher.jar";
#set JVM options and Ant arguments, if any
my @ANT_OPTS=split(" ", $ENV{ANT_OPTS});
my @ANT_ARGS=split(" ", $ENV{ANT_ARGS});
#jikes
if($ENV{JIKESPATH} ne "")
{
push @ANT_OPTS, "-Djikes.class.path=$ENV{JIKESPATH}";
}
#construct arguments to java
my @ARGS;
push @ARGS, @ANT_OPTS;
my $CYGHOME = "";
my $classpath=$ENV{CLASSPATH};
if ($oncygwin == 1) {
$localpath = `cygpath --path --windows $localpath`;
chomp ($localpath);
if (! $classpath eq "")
{
$classpath = `cygpath --path --windows "$classpath"`;
chomp ($classpath);
}
$HOME = `cygpath --path --windows $HOME`;
chomp ($HOME);
$CYGHOME = `cygpath --path --windows $ENV{HOME}`;
chomp ($CYGHOME);
}
push @ARGS, "-classpath", "$localpath";
push @ARGS, "-Dant.home=$HOME";
if ( ! $CYGHOME eq "" )
{
push @ARGS, "-Dcygwin.user.home=\"$CYGHOME\""
}
push @ARGS, "org.apache.tools.ant.launch.Launcher", @ANT_ARGS;
push @ARGS, @ARGV;
if (! $classpath eq "")
{
if ($onnetware == 1)
{
# make classpath literally $CLASSPATH
# this is to avoid pushing us over the 512 character limit
# even skip the ; - that is already in $localpath
push @ARGS, "-lib", "\$CLASSPATH";
}
else
{
push @ARGS, "-lib", "$classpath";
}
}
print "\n $JAVACMD @ARGS\n\n" if ($debug);
my $returnValue = system $JAVACMD, @ARGS;
if ($returnValue eq 0)
{
exit 0;
}
else
{
# only 0 and 1 are widely recognized as exit values
# so change the exit value to 1
exit 1;
}

View File

@@ -0,0 +1,100 @@
#!/usr/bin/python
# Copyright 2001,2003-2004 The Apache Software Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
"""
runant.py
This script is a translation of the runant.pl written by Steve Loughran.
It runs ant with/out arguments, it should be quite portable (thanks to
the python os library)
This script has been tested with Python2.0/Win2K
created: 2001-04-11
author: Pierre Dittgen pierre.dittgen@criltelecom.com
Assumptions:
- the "java" executable/script is on the command path
"""
import os, os.path, string, sys
# Change it to 1 to get extra debug information
debug = 0
#######################################################################
# If ANT_HOME is not set default to script's parent directory
if os.environ.has_key('ANT_HOME'):
ANT_HOME = os.environ['ANT_HOME']
else:
ANT_HOME = os.path.dirname(os.path.dirname(os.path.abspath(sys.argv[0])))
# set ANT_LIB location
ANT_LIB = os.path.join(ANT_HOME, 'lib')
# set JAVACMD (check variables JAVACMD and JAVA_HOME)
JAVACMD = None
if not os.environ.has_key('JAVACMD'):
if os.environ.has_key('JAVA_HOME'):
if not os.path.exists(os.environ['JAVA_HOME']):
print "Warning: JAVA_HOME is not defined correctly."
else:
JAVACMD = os.path.join(os.environ['JAVA_HOME'], 'bin', 'java')
else:
print "Warning: JAVA_HOME not set."
else:
JAVACMD = os.environ['JAVACMD']
if not JAVACMD:
JAVACMD = 'java'
launcher_jar = os.path.join(ANT_LIB, 'ant-launcher.jar')
if not os.path.exists(launcher_jar):
print 'Unable to locate ant-launcher.jar. Expected to find it in %s' % \
ANT_LIB
# Build up standard classpath (LOCALCLASSPATH)
LOCALCLASSPATH = launcher_jar
if os.environ.has_key('LOCALCLASSPATH'):
LOCALCLASSPATH += os.pathsep + os.environ['LOCALCLASSPATH']
ANT_OPTS = ""
if os.environ.has_key('ANT_OPTS'):
ANT_OPTS = os.environ['ANT_OPTS']
OPTS = ""
if os.environ.has_key('JIKESPATH'):
OPTS = '-Djikes.class.path=\"%s\"' % os.environ['JIKESPATH']
ANT_ARGS = ""
if os.environ.has_key('ANT_ARGS'):
ANT_ARGS = os.environ['ANT_ARGS']
CLASSPATH = ""
if os.environ.has_key('CLASSPATH'):
CLASSPATH = os.environ['CLASSPATH']
# Builds the commandline
cmdline = ('%s %s -classpath %s -Dant.home=%s %s ' + \
'org.apache.tools.ant.launch.Launcher %s -lib %s %s') \
% (JAVACMD, ANT_OPTS, LOCALCLASSPATH, ANT_HOME, OPTS, ANT_ARGS, \
CLASSPATH, string.join(sys.argv[1:], ' '))
if debug:
print '\n%s\n\n' % (cmdline)
# Run the biniou!
os.system(cmdline)

View File

@@ -0,0 +1,59 @@
/*
Copyright 2003-2004 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Run RC file, name is in the first arg, second arg is either PATH
ENV or -r or nothing
*/
parse arg name path rest
if name = '' then do
say 'RC file name is missing'
exit 1
end
if rest \= '' then do
say 'Too many parameters'
exit 1
end
call runit name path
exit 0
runit: procedure
parse arg name path dir
if path \= '' & path \= '-r' then do
dir = value(translate(path),,'OS2ENVIRONMENT')
if dir = '' then return
dir = translate(dir, '\', '/') /* change UNIX-like path to OS/2 */
end
if dir = '' then dir = directory()
if path = '-r' then do /* recursive call */
subdir = filespec('path', dir)
if subdir \= '\' then do
subdir = left(subdir, length(subdir)-1)
call runit name path filespec('drive', dir) || subdir
end
end
/* Look for the file and run it */
if right(dir, 1) \= '\' then dir = dir || '\'
rcfile = stream(dir || name, 'c', 'query exists')
if rcfile \= '' then interpret 'call "' || rcfile || '"'
return

View File

@@ -0,0 +1,14 @@
Please refer to the Ant manual under Installing Ant / Library
Dependencies for a list of the jar requirements for various optional
tasks and features.
This directory contains xercesImpl.jar from the 2.6.2 release of
Apache Xerces. For more information or newer releases see
<http://xml.apache.org/xerces2-j/>. See the file LICENSE.xerces for
the terms of distribution.
It also contains xml-apis.jar from the 2.6.2 release of Apache Xerces.
For more information or newer releases see
<http://xml.apache.org/commons/>. See the files LICENSE.dom and
LICENSE.sax for the terms of distribution.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,68 @@
@echo off
rem CURPATH
rem ModuleName
rem param
set CURPATH=%cd%
set argc=0
:ModuleSelect
cls
echo Input Module (osm ^| txn ^| uts ^| dbm)
set /p param=-^>
IF %param% == osm (
goto moduleSet
)
IF %param% == txn (
goto moduleSet
)
IF %param% == uts (
goto moduleSet
)
IF %param% == dbm (
goto moduleSet
) ELSE (
echo Wrong ModuleName. Exit program? (Y/N^)
set /p param=-^>
IF %param% == Y goto end
IF %param% == y goto end
goto ModuleSelect
)
:moduleSet
set ModuleName=imx%param%
:OptionSelect
cls
echo Input Option (stop)
set /p param=-^>
IF %param% == stop (
cd ../data/agent
goto stop
) ELSE (
echo Wrong Option Command. Exit program? (Y/N^)
set /p param=-^>
IF %param% == Y goto end
IF %param% == y goto end
goto OptionSelect
)
:stop
IF exist %ModuleName% (
ren %ModuleName% %ModuleName%.stoped
echo %ModuleName% stop!
goto end
) ELSE (
echo %ModuleName% is not exist!
goto end
)
:end
cd %CURPATH%
pause

View File

@@ -0,0 +1,95 @@
#!/bin/sh
Usage()
{
echo ""
echo "$0 [option ...]"
echo " --stop=[osm|txn|uts] Input osm, txn, and uts, separated by commas."
echo " If there is no value input, the entire process-"
echo " is terminated."
echo " (ex. --stop or --stop=txn,uts)"
echo ""
exit 1
}
BASE_DIR=`pwd`
if [ -z "${INTERMAX_HOME}" ];then
if [ ! -f "${BASE_DIR}/imxctl.sh" ];then
echo "Please run it from imxctl.sh file location."
exit 2
fi
cd ..
INTERMAX_HOME=`pwd`
fi
cd ${INTERMAX_HOME}
echo "INTERMAX_HOME[${INTERMAX_HOME}]"
if [ -z "$1" ];then
Usage
fi
for i in $@
do
echo "${i}"
case "$i" in
--stop=*)
STOP_LIST=`echo "$i" | awk -F'=' '{print $2}'`
;;
--stop)
STOP_LIST="osm,txn,uts"
;;
*)
Usage
;;
esac
done
if [ -n "${STOP_LIST}" ];then
STOP_LIST=`echo "${STOP_LIST}" | sed 's/,/ /g'`
# STOP_LIST=`echo "${STOP_LIST}" | awk -F',' '{print $1" "$2" "$3}'`
# <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E4B8AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>˻<EFBFBD><CBBB>Ѵ<EFBFBD>.
if [ ! -d "${INTERMAX_HOME}/data/agent" ];then
echo "pid directory is not exist.[${INTERMAX_HOME}/data/agent]"
Usage
fi
# Check imx list
for STOP_IMX in ${STOP_LIST}
do
if [ "${STOP_IMX}" != "osm" ] && [ "${STOP_IMX}" != "txn" ] && [ "${STOP_IMX}" != "uts" ];then
echo "imx name is wrong."
Usage
fi
done
# Stop imx
for STOP_IMX in ${STOP_LIST}
do
if [ -f "${INTERMAX_HOME}/data/agent/imx${STOP_IMX}" ];then
echo "--> imx${STOP_IMX} stop!"
# echo "mv ${INTERMAX_HOME}/data/agent/imx${STOP_IMX} ${INTERMAX_HOME}/data/agent/imx${STOP_IMX}.stopped"
mv ${INTERMAX_HOME}/data/agent/imx${STOP_IMX} ${INTERMAX_HOME}/data/agent/imx${STOP_IMX}.stopped
else
echo "--> imx${STOP_IMX} is not running"
fi
done
fi
exit 0

View File

@@ -0,0 +1,39 @@
@echo off
setlocal
pushd "%~dp0"
if "%INTERMAX_HOME%" == "" (
echo please check INTERMAX_HOME.
exit /b 1
)
if "%1" == "" (
echo please check option[--install^|--uninstall].
exit /b 1
)
set MODULE_DIR=%INTERMAX_HOME%\lib\imx
set MODULE_NAME=imxtxn
set SERVICE_NAME=IMXTXN
set EXEC_NAME=%MODULE_NAME%_win_64.exe
set XMSVCMGR=%INTERMAX_HOME%\tools\XmSvcMgr\XmSvcMgr_x64.exe
if "%1" == "--install" (
%XMSVCMGR% -i -p "%MODULE_DIR%" -f "%EXEC_NAME%" -a "-H %INTERMAX_HOME%" -n "%SERVICE_NAME%" -s "Intermax %MODULE_NAME%"
)
if "%1" == "--uninstall" (
%XMSVCMGR% -u -f "%EXEC_NAME%" -n "%MODULE_NAME%"
)
endlocal
@pause

View File

@@ -0,0 +1,415 @@
#!/bin/sh
# set log path(default)
# WORKING_DIRECOTYR=`pwd`
# LOG_PATH="${WORKING_DIRECOTYR}/temp_imxtxnd.log"
# $1: log filename, $2: log limit size
func_check_log_file()
{
LOG_CHK_SIZE=1048576
if [ -n "$2" ];then
LOG_CHK_SIZE=$2
fi
if [ -f "$1" ];then
LOG_SIZE=`ls -la $1 | awk -F' ' '{print $5}'`
if [ $? -eq 0 ]; then
if [ ${LOG_SIZE} -gt ${LOG_CHK_SIZE} ]; then
if [ -f $1.bak ];then
rm -rf $1.bak
fi
mv $1 $1.bak
# rm -rf $1
# echo "log size is over. remove log file.[size:${LOG_SIZE},file:$1]"
fi
fi
fi
}
# $1: log filename $2: log string
func_log()
{
CUR_DATE=`date +%Y%m%d.%H%M%S`
# nfs ȯ<><EFBFBD><E6BFA1> <20>Ѱ<EFBFBD><D1B0><EFBFBD> <20><>ġ<EFBFBD><C4A1> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20><><EFBFBD><EFBFBD> <20>ٸ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
# <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> imxtxnd<6E><64> <20>׳<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ǹ<EFBFBD><C7B9><EFBFBD><EFBFBD><EFBFBD>.
if [ -n "$1" ];
then
func_check_log_file "$1" 10240
echo "${CUR_DATE}[${RUN_MODE}] $2" >> "$1"
else
echo "${CUR_DATE}[${RUN_MODE}] $2"
fi
}
FUNC_RESULT=""
# $1: pid, $2: check process name
func_is_running_process()
{
if [ -z "$1" ];
then
func_log "" "pid is wrong."
FUNC_RESULT="false"
return
fi
PROC_NAME=`ps -p $1 -o args= | awk -F' ' '{print $1}'`
func_log "" "EXEC_PID[$1],PROC_NAME[${PROC_NAME}]"
if [ "${PROC_NAME}" = "$2" ];
then
FUNC_RESULT="true"
else
FUNC_RESULT="false"
fi
}
# $1: exit code, $2: message
func_usage_exit()
{
if [ -n "$2" ];
then
echo "$2"
fi
echo "imxtxnd [options]"
echo "options:"
echo " --[install|uninstall|continue|daemon]"
echo " install: Start imxtxn as a new daemon."
echo " uninstall: Start Terminate running imxtxn."
echo " continue: Continuing from imxtxn already running."
echo " daemon: Starts as a standalone daemon.(default)"
echo " --set-home=[directory] Set the InterMax home directory."
echo " (default:current direcotry)"
echo " --bit=[32|64] Set 32 or 64 bit.(default:64)"
echo ""
exit $1
}
##########################################
# option
SELF_PROC_PATH="$0"
if [ -n "$1" ];
then
for i in $@
do
echo "$i"
case "$i" in
--install)
RUN_MODE="install"
;;
--uninstall)
RUN_MODE="uninstall"
;;
--continue)
RUN_MODE="continue"
;;
--daemon)
RUN_MODE="daemon"
;;
--set-home=*)
ENV_INTERMAX_HOME=`echo "$i" | awk -F'=' '{print $2}'`
;;
--bit=*)
ENV_BIT=`echo "$i" | awk -F'=' '{print $2}'`
;;
--help)
func_usage_exit 0
;;
*)
func_usage_exit 1 "option is wrong."
;;
esac
done
fi
##########################################
##########################################
# os
# linux <20><> <20>׽<EFBFBD>Ʈ <20>غ<EFBFBD>
OS_NAME=`uname -s`
case $OS_NAME in
"HP-UX" )
ARCH=`uname -m`
if [ ! "${ARCH}" = "ia64" ];
then
func_log "${LOG_PATH}" "${ARCH} is not support."
exit 1
fi
ENV_OS_TYPE=hpia
UNIX95=1
;;
"SunOS" )
ENV_OS_TYPE=sun
;;
"AIX" )
ENV_OS_TYPE=aix
;;
"Linux" )
ENV_OS_TYPE=linux
# ENV_OS_TYPE=sun
;;
* )
func_log "${LOG_PATH}" "Unkown OS Name[$OS_NAME]"
exit 1
;;
esac
##########################################
##########################################
# set default bit
if [ "${ENV_BIT}" = "" ];
then
# default 64 bit
ENV_BIT=64
fi
##########################################
##########################################
# set default run mode
if [ "${RUN_MODE}" = "" ];
then
# default 64 bit
RUN_MODE="daemon"
fi
##########################################
##########################################
# set intermax home directory
# 1. input option
# 2. environment INTERMAX_HOME
# 3. current directory
if [ ! "${ENV_INTERMAX_HOME}" = "" ];
then
INTERMAX_HOME="${ENV_INTERMAX_HOME}"
export INTERMAX_HOME
fi
if [ "${INTERMAX_HOME}" = "" ];
then
# set current direcotry base
CUR_DIR=`pwd`
cd ..
INTERMAX_HOME=`pwd`
export INTERMAX_HOME
cd ${CUR_DIR}
fi
##########################################
##########################################
# check intermax home directory
if [ ! -d ${INTERMAX_HOME}/lib/imx ];
then
func_log "${LOG_PATH}" "InterMax Home Directory is worng.[${INTERMAX_HOME}]"
exit 1
fi
# <20>̰<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ؾ<EFBFBD> <20>ϳ<EFBFBD>.. <20>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD> ó<><C3B3>
if [ ! -d ${INTERMAX_HOME}/data/agent ];
then
func_log "${LOG_PATH}" "InterMax Home Directory is worng.[${INTERMAX_HOME}]"
exit 1
fi
##########################################
##########################################
# reset log path & chagne directory to InterMax home
# cd ${INTERMAX_HOME}
func_log "${LOG_PATH}" "InterMax Home Directory [${INTERMAX_HOME}]"
# <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>α׸<CEB1> ȭ<><20><><EFBFBD><EFBFBD><EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD> <20>Ѵ<EFBFBD>.
LOG_PATH="${INTERMAX_HOME}/log/imxtxnd.log"
##########################################
##########################################
# set execute process path
EXEC_PROCESS="${INTERMAX_HOME}/lib/imx/imxtxn"
# echo "execute process path[${EXEC_PROCESS}]"
func_log "${LOG_PATH}" "execute process path[${EXEC_PROCESS}]"
PROC_PID_PATH=${INTERMAX_HOME}/data/agent/imxtxn
func_log "${LOG_PATH}" "PROC_PID_PATH[$PROC_PID_PATH]"
##########################################
##########################################
# copy imxtxn(if not exist)
if [ ! -f ${EXEC_PROCESS} ];
then
cp ${INTERMAX_HOME}/lib/imx/imxtxn_${ENV_OS_TYPE}_${ENV_BIT} ${EXEC_PROCESS}
if [ ! "$?" = "0" ];
then
func_log "${LOG_PATH}" "${INTERMAX_HOME}/lib/imx/imxtxn_${ENV_OS_TYPE}_${ENV_BIT} is not exist."
exit 3
fi
fi
##########################################
##########################################
# check config
# test command(0 or 1)
# sed -n '/ENABLE_TXN_STANDALONE=\(.*\)/p' cfg/agent/imx.prop | awk -F'=' '{if($2=="1") exit(0); else exit(1);}'; echo "$?"
CMD_RESULT=`sed -n '/ENABLE_TXN_STANDALONE=\(.*\)/p' ${INTERMAX_HOME}/cfg/agent/imx.prop`
if [ ! "$?" = "0" ];
then
echo "check please - imx config file(imx.prop)"
exit 1
fi
CFG_ENABLE_TXN_STANDALONE=`echo "${CMD_RESULT}" | awk -F'=' '{print $2}'`
if [ ! "${CFG_ENABLE_TXN_STANDALONE}" = "1" ];
then
echo "check please - ENABLE_TXN_STANDALONE option in imx.prop(value:${CFG_ENABLE_TXN_STANDALONE})"
exit 1
fi
echo "ENABLE_TXN_STANDALONE config checked."
##########################################
##########################################
# run process
# stop mode<64><65><EFBFBD><EFBFBD> INTERMAX_HOME<4D><45> <20>ʿ<EFBFBD><CABF>Ͽ<EFBFBD> <20><><EFBFBD><EFBFBD><E2BFA1> install, uninstall<6C><6C> ó<><C3B3><EFBFBD>Ѵ<EFBFBD>.
case ${RUN_MODE} in
"install")
if [ -f "${PROC_PID_PATH}" ];
then
func_is_running_process \
`cat ${PROC_PID_PATH}` \
"${EXEC_PROCESS}"
if [ "${FUNC_RESULT}" = "true" ];
then
echo "imxtxnd - imxtxn is already running."
echo "imxtxnd - Rerun imxtxnd with run mode \"continue\"."
func_log "" "imxtxnd - imxtxn is already running."
func_log "" "imxtxnd - 'imxtxnd --stop' or delete '${INTERMAX_HOME}/data/agent/imxtxnd.pid'"
exit 1
fi
fi
nohup ${SELF_PROC_PATH} --daemon --set-home=${INTERMAX_HOME} 1>/dev/null 2>&1 &
echo "$!" > ${INTERMAX_HOME}/data/agent/imxtxnd.pid
echo "imxtxnd - installed[$!]"
func_log "${LOG_PATH}" "imxtxnd - installed[$!]"
exit 0
;;
"continue")
TEMP_STR=""
if [ -f "${INTERMAX_HOME}/data/agent/imxtxnd.pid" ];
then
TEMP_PID=`cat ${INTERMAX_HOME}/data/agent/imxtxnd.pid`
TEMP_STR=`ps -p ${TEMP_PID} | grep imxtxnd`
fi
if [ -n "${TEMP_STR}" ];
then
func_log "" "${TEMP_STR}"
func_log "" "imxtxnd - imxtxnd is not running."
exit 1
fi
# imxtxnd <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>¿<EFBFBD><C2BF><EFBFBD> imxtxn<78><6E> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
# <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> imxtxn<78><6E> <20>״<EFBFBD><D7B4><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ѵ<EFBFBD>.
nohup ${SELF_PROC_PATH} --daemon --set-home=${INTERMAX_HOME} 1>/dev/null 2>&1 &
echo "$!" > ${INTERMAX_HOME}/data/agent/imxtxnd.pid
echo "imxtxnd - continue[$!]"
func_log "${LOG_PATH}" "imxtxnd - continue[$!]"
exit 0
;;
"uninstall")
if [ -f "${INTERMAX_HOME}/data/agent/imxtxnd.pid" ];
then
rm -rf ${INTERMAX_HOME}/data/agent/imxtxnd.pid
fi
if [ -f "${PROC_PID_PATH}" ];
then
rm -rf ${PROC_PID_PATH}
func_log "${LOG_PATH}" "imxtxnd - uninstall"
else
func_log "${LOG_PATH}" "imxtxnd - imxtxn is not running."
fi
exit 0
;;
"daemon")
func_log "${LOG_PATH}" "imxtxnd daemon"
;;
esac
##########################################
##########################################
# run imxtxn
if [ ! -f "${PROC_PID_PATH}" ];
then
${EXEC_PROCESS} -D
func_log "${LOG_PATH}" "execute process[$EXEC_PROCESS]"
sleep 3
fi
if [ ! -f "${PROC_PID_PATH}" ];
then
func_log "${LOG_PATH}" "execute process has failed.[${EXEC_PROCESS}]"
exit 4
fi
PROC_NAME=""
while [ -f "${PROC_PID_PATH}" ]
do
echo "PROC_PID_PATH[${PROC_PID_PATH}][$EXEC_PROCESS]"
PROC_PID=`cat ${PROC_PID_PATH}`
echo "PROC_PID[${PROC_PID}]"
func_is_running_process \
"${PROC_PID}" \
"${EXEC_PROCESS}"
if [ "${FUNC_RESULT}" = "false" ];
then
func_log "${LOG_PATH}" "process is not running."
# run process
${EXEC_PROCESS} -D
func_log "${LOG_PATH}" "execute process[$EXEC_PROCESS]"
fi
sleep 3
done
##########################################
func_log "${LOG_PATH}" "imxtxnd end"

View File

@@ -0,0 +1,30 @@
setlocal EnableDelayedExpansion
pushd "%~dp0"
set CURRENTDIR=%cd%
cd ..\..
set INTERMAX_HOME=%cd%
cd .\lib
set LIB_DIR=%cd%
set "JAVA_OPTION=-Xms256m -Xmx256m"
set "JAVA_OPTION=%JAVA_OPTION% -server"
set "JAVA_OPTION=%JAVA_OPTION% -DINTERMAX_HOME=%INTERMAX_HOME%"
set "JAVA_OPTION=%JAVA_OPTION% -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=%INTERMAX_HOME%"
set "JAVA_OPTION=%JAVA_OPTION% -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1HeapRegionSize=10m -XX:InitiatingHeapOccupancyPercent=45 -XX:MaxGCPauseMillis=2000"
set "JAVA_OPTION=%JAVA_OPTION% -XX:MaxTenuringThreshold=0 -XX:CMSInitiatingOccupancyFraction=60"
set CLASSPATH=%LIB_DIR%\imxwsm.jar
for /R %LIB_DIR%\libs %%a in (*.jar) do (
set CLASSPATH=!CLASSPATH!;%%a
)
set CLASSPATH=!CLASSPATH!
%LIB_DIR%\JavaService -install "IMXWSM" "%JAVA_HOME%\jre\bin\server\jvm.dll" -Djava.class.path=%CLASSPATH% %JAVA_OPTION% -start com.exem.imx.wsm.Main -current %CURRENTDIR% -description "EXEM IMXWSM"
rem -out %CURRENTDIR%\out.log -err %CURRENTDIR%\err.log
pause

View File

@@ -0,0 +1,12 @@
setlocal
rem FOR /F %%I IN ("%0") DO SET CURRENTDIR=%%~dpI
rem cd %CURRENTDIR%
pushd "%~dp0"
cd ..\..\lib
%cd%\JavaService.exe -uninstall "IMXWSM"
pause

View File

@@ -0,0 +1,17 @@
rem @echo off
pushd "%~dp0"
set CURRENTDIR=%cd%
cd ..\
set JSPD_HOME=%cd%
set JAVA_HOME=%JAVA_HOME%
set JAVA_OPTS=-Djspd.home=%JSPD_HOME%
set JAVA_OPTS=%JAVA_OPTS% -Djspd.jar=%JSPD_HOME%\lib\jspd.jar
set JAVA_OPTS=%JAVA_OPTS% -Dpatch.jspd.jar=%JSPD_HOME%\lib\patch\jspd.jar
set JAVA_OPTS=%JAVA_OPTS% -Dpatch.jspd-common.jar=%JSPD_HOME%\lib\patch\jspd-common.jar
set JAVA_OPTS=%JAVA_OPTS% -Dpatch.jspd-pool.jar=%JSPD_HOME%\lib\patch\jspd-pool.jar
cd %CURRENTDIR%
"%JAVA_HOME%\bin\java" %JAVA_OPTS% -classpath "%JAVA_HOME%\lib\tools.jar;%JSPD_HOME%\lib\libs\*;%JSPD_HOME%\lib\jspd-launcher.jar" com.exem.jspd.launcher.Main %1 %2 %3

View File

@@ -0,0 +1,13 @@
#!/bin/sh
JAVA_HOME=$JAVA_HOME
cd ../
JSPD_HOME=`pwd`
JAVA_OPTS="-Djspd.home=$JSPD_HOME"
JAVA_OPTS="$JAVA_OPTS -Djspd.jar=$JSPD_HOME/lib/jspd.jar"
JAVA_OPTS="$JAVA_OPTS -Dpatch.jspd.jar=$JSPD_HOME/lib/patch/jspd.jar"
JAVA_OPTS="$JAVA_OPTS -Dpatch.jspd-common.jar=$JSPD_HOME/lib/patch/jspd-common.jar"
JAVA_OPTS="$JAVA_OPTS -Dpatch.jspd-pool.jar=$JSPD_HOME/lib/patch/jspd-pool.jar"
$JAVA_HOME/bin/java $JAVA_OPTS -classpath $JAVA_HOME/lib/tools.jar:$JSPD_HOME/lib/jspd-launcher.jar:$JSPD_HOME/lib/libs/* com.exem.jspd.launcher.Main $1 $2 $3

View File

@@ -0,0 +1,25 @@
setlocal
cd ..
set INTERMAX_HOME=%cd%
echo %INTERMAX_HOME%
cd %INTERMAX_HOME%
set "JAVA_OPTION=-Xms256m -Xmx256m"
set "JAVA_OPTION=%JAVA_OPTION% -server"
set "JAVA_OPTION=%JAVA_OPTION% -DINTERMAX_HOME=%INTERMAX_HOME%"
set "JAVA_OPTION=%JAVA_OPTION% -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=%INTERMAX_HOME%"
set "JAVA_OPTION=%JAVA_OPTION% -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1HeapRegionSize=10m -XX:InitiatingHeapOccupancyPercent=45 -XX:MaxGCPauseMillis=2000"
rem set JAVA_OPTION="$JAVA_OPTION -XX:+UseParNewGC -XX:+UseConcMarkSweepGC"
set "JAVA_OPTION=%JAVA_OPTION% -XX:MaxTenuringThreshold=0 -XX:CMSInitiatingOccupancyFraction=60"
rem for debugging only.
rem set JAVA_OPTION="%JAVA_OPTION% -ea"
rem set JAVA_OPTION="%JAVA_OPTION% -Dio.netty.leakDetectionLevel=PARANOID"
rem set JAVA_OPTION="%JAVA_OPTION% -XX:NativeMemoryTracking=summary"
java -Dimxwsm.jar %JAVA_OPTION% -classpath %INTERMAX_HOME%\lib\imxwsm.jar;%INTERMAX_HOME%\lib\libs\* com.exem.imx.wsm.Main

View File

@@ -0,0 +1,163 @@
#!/bin/sh
CUR_DIR=`pwd`
INTERMAX_HOME=`dirname $CUR_DIR`
print_n_exit()
{
echo $1
exit $2
}
################################################################
# set libpcap
OS_NAME=`uname -s`
ENV_BIT="$1"
if [ "${ENV_BIT}" = "" ];
then
ENV_BIT="64"
fi
if [ "$OS_NAME" = "AIX" ];
then
ENV_BIT=`getconf -a | grep KERNEL_BITMODE | awk -F' ' '{print $2}'`
ENV_OS_NAME="aix"
OS_VER=`uname -v`
OS_RELEASE=`uname -r`
ENV_OS_VER="${OS_VER}.${OS_RELEASE}"
if [ "$ENV_OS_VER" != "7.2" ]; then
ENV_OS_VER="5.3"
fi
ENV_CPU=`uname -p`
if [ "$ENV_CPU" = "powerpc" ]; then
ENV_CPU="powerpc"
else
echo "[$ENV_CPU] is not support"
exit 0
fi
ENV_LIB_PCAP_VER="1.7.4"
if [ "$ENV_OS_VER" != "7.2" ]; then
ENV_LIB_PCAP_VER="1.6.1"
fi
elif [ "$OS_NAME" = "Linux" ];
then
ENV_OS_NAME="linux"
OS_VER=`uname -r | awk -F'.' '{print $1}'`
OS_RELEASE=`uname -r | awk -F'.' '{print $2}'`
# ENV_OS_VER="${OS_VER}.${OS_RELEASE}"
ENV_OS_VER="2.6"
ENV_CPU=`uname -m`
# ENV_LIB_PCAP_VER="1.7.4"
ENV_LIB_PCAP_VER="1.8.1"
if [ "${ENV_BIT}" = "32" ];
then
ENV_LIB_PCAP_VER="1.7.4"
fi
elif [ "$OS_NAME" = "SunOS" ];
then
ENV_OS_NAME="sunos"
OS_VER=`uname -r | awk -F'.' '{print $1}'`
OS_RELEASE=`uname -r | awk -F'.' '{print $2}'`
ENV_OS_VER="${OS_VER}.${OS_RELEASE}"
ENV_CPU=`uname -p`
if [ ${OS_VER} -eq 5 ] && [ ${OS_RELEASE} -gt 10 ];then
ENV_LIB_PCAP_VER="1.8.1"
else
ENV_LIB_PCAP_VER="1.7.4"
fi
elif [ "$OS_NAME" = "HP-UX" ];
then
ENV_OS_NAME="hpux"
OS_VER=`uname -r | awk -F'.' '{print $2}'`
OS_RELEASE=`uname -r | awk -F'.' '{print $3}'`
ENV_OS_VER="${OS_VER}.${OS_RELEASE}"
ENV_CPU=`uname -m`
ENV_LIB_PCAP_VER="1.8.1"
else
print_n_exit "$OS_NAME is not support!" 0
fi
if [ "$OS_NAME" = "AIX" ] && [ "$ENV_BIT" = "64" ];
then
cp ${INTERMAX_HOME}/lib/jni/libjni_pcap_aix_64.so.${ENV_OS_VER} ${INTERMAX_HOME}/lib/jni/libjni_pcap_aix_64.so
elif [ "$OS_NAME" = "SunOS" ];
then
ln -s libjni_pcap_sun_${ENV_BIT}.so.${ENV_OS_VER} ${INTERMAX_HOME}/lib/jni/libjni_pcap_sun_${ENV_BIT}.so
fi
if [ "$OS_NAME" = "AIX" ];
then
LIB_PCAP_NAME="libpcap.a.${ENV_LIB_PCAP_VER}-${ENV_OS_NAME}-${ENV_OS_VER}-${ENV_CPU}-${ENV_BIT}"
LIB_PCAP_NAME_LINK="libpcap.a"
else
LIB_PCAP_NAME="libpcap.so.${ENV_LIB_PCAP_VER}-${ENV_OS_NAME}-${ENV_OS_VER}-${ENV_CPU}-${ENV_BIT}"
LIB_PCAP_NAME_LINK="libpcap.so.1"
fi
cd ${INTERMAX_HOME}/lib/jni/lib
if [ ! -f "${LIB_PCAP_NAME}" ]; then
echo "${LIB_PCAP_NAME} is not exist"
exit 0
fi
if [ ! -f "${LIB_PCAP_NAME_LINK}" ]; then
ln -s ${LIB_PCAP_NAME} ${LIB_PCAP_NAME_LINK}
if [ $? != 0 ]; then
echo "link[${LIB_PCAP_NAME}] has failed"
exit 0
fi
fi
cd ${CUR_DIR}
if [ "$OS_NAME" = "AIX" ];
then
export LIBPATH=${INTERMAX_HOME}/lib/jni/lib:$LIBPATH
echo $LIBPATH
else
LD_LIBRARY_PATH=${INTERMAX_HOME}/lib/jni/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
echo $LD_LIBRARY_PATH
fi
env
# set libpcap
###################################################################
pid=`ps -ef | grep imxwsm.jar | grep java | awk '{print $2}'`
if [ "$pid" != "" ]
then
kill -9 $pid
fi
cd $INTERMAX_HOME
JAVA_OPTION=" -Xms256m -Xmx256m"
JAVA_OPTION="$JAVA_OPTION -server"
JAVA_OPTION="$JAVA_OPTION -DINTERMAX_HOME=$INTERMAX_HOME"
JAVA_OPTION="$JAVA_OPTION -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=$INTERMAX_HOME "
JAVA_OPTION="$JAVA_OPTION -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1HeapRegionSize=10m -XX:InitiatingHeapOccupancyPercent=45 -XX:MaxGCPauseMillis=2000 "
#JAVA_OPTION="$JAVA_OPTION -XX:+UseParNewGC -XX:+UseConcMarkSweepGC"
JAVA_OPTION="$JAVA_OPTION -XX:MaxTenuringThreshold=0 -XX:CMSInitiatingOccupancyFraction=60"
# for debugging only.
#JAVA_OPTION="$JAVA_OPTION -ea"
#JAVA_OPTION="$JAVA_OPTION -Dio.netty.leakDetectionLevel=PARANOID"
#JAVA_OPTION="$JAVA_OPTION -XX:NativeMemoryTracking=summary"
java -d64 -Dimxwsm.jar $JAVA_OPTION -classpath $INTERMAX_HOME/lib/imxwsm.jar:$INTERMAX_HOME/lib/libs/* com.exem.imx.wsm.Main &

View File

@@ -0,0 +1,8 @@
#!/bin/sh
pid=`ps -ef | grep imxwsm.jar | grep java | awk '{print $2}'`
if [ "$pid" != "" ]
then
kill -9 $pid
fi

View File

@@ -0,0 +1,6 @@
set JAVA_HOME=
set JAVA_VERSION=
set ANT_HOME=..\..\ant
set PATH=%JAVA_HOME%\bin;%ANT_HOME%\bin
ant -DJAVA_HOME="%JAVA_HOME%" -DJAVA_VERSION="%JAVA_VERSION%" %1

View File

@@ -0,0 +1,7 @@
export JAVA_HOME=
export JAVA_VERSION=
export ANT_HOME=../../ant
export PATH=$JAVA_HOME/bin:$ANT_HOME/bin:$PATH
ant -DJAVA_HOME="$JAVA_HOME" -DJAVA_VERSION="$JAVA_VERSION" $1

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="euc-kr"?>
<project default="all" basedir=".">
<target name="all" depends="jar" />
<target name="jar">
<delete file="jspd-ext.jar" />
<mkdir dir="bin"/>
<javac executable="${JAVA_HOME}" target="${JAVA_VERSION}" source="${JAVA_VERSION}" srcdir="src" destdir="bin"
includes="com/exem/ext/**"
classpath="../lib/jspd-common.jar"
debug="on" />
<zip destfile="jspd-ext.jar">
<fileset dir="bin" />
</zip>
<delete dir="bin" />
</target>
</project>

View File

@@ -0,0 +1,5 @@
set JAVA_HOME=C:\Program Files (x86)\java\jdk1.6.0_03
set ANT_HOME=..\..\ant
set PATH=%JAVA_HOME%\bin;%ANT_HOME%\bin
ant %1

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="euc-kr"?>
<project default="all" basedir=".">
<target name="all" depends="jar" />
<target name="jar">
<delete file="jspd-ext.jar" />
<mkdir dir="bin"/>
<javac srcdir="src" destdir="bin"
includes="com/exem/ext/**,com/exem/qa/**"
classpath="../lib/jspd-common.jar"
debug="on" />
<zip destfile="jspd-ext.jar">
<fileset dir="bin" />
</zip>
<delete dir="bin" />
</target>
</project>

View File

@@ -0,0 +1,52 @@
package com.exem.ext;
import com.exem.IThread;
import com.exem.IXBound;
import com.exem.jspd.XmClass;
import com.exem.jspd.XmCommon;
import com.exem.jspd.state.XmXDesc;
import com.exem.jspd.state.XmXInfo;
public class XM_BOUND_HTTP implements IXBound
{
public int xCall(int index, IThread thread, XmXInfo info, Object[] obj)
{
index = thread.regMtdIndex("HTTP", "call");
return index;
}
public void xOutbound(IThread thread, XmXInfo info, Object[] obj)
{
XmCommon.xstart(info);
String id = (String) obj[obj.length - 1];
XmCommon.x(info, id.getBytes());
}
public void xReply(IThread thread, Object[] obj, XmXDesc desc)
{
}
public void xInboundEnter(IThread thread, XmXInfo info, Object[] obj)
{
if (obj[obj.length - 1] != null)
{
xInbound(thread, info, obj);
}
}
public void xInbound(IThread thread, XmXInfo info, Object[] obj)
{
String id = (String) obj[obj.length - 1];
if(id != null)
{
XmCommon.xstart(info);
XmCommon.x(info, id.getBytes());
}
}
public void xInboundLeave(IThread thread, XmXInfo info, Object[] obj)
{
}
}

View File

@@ -0,0 +1,35 @@
package com.exem.ext;
import com.exem.IThread;
import com.exem.IXBound;
import com.exem.jspd.state.XmXDesc;
import com.exem.jspd.state.XmXInfo;
public class XM_BOUND_X implements IXBound
{
public int xCall(int index, IThread thread, XmXInfo info, Object[] obj)
{
return index;
}
public void xOutbound(IThread thread, XmXInfo info, Object[] obj)
{
}
public void xReply(IThread thread, Object[] obj, XmXDesc desc)
{
}
public void xInboundEnter(IThread thread, XmXInfo info, Object[] obj)
{
}
public void xInbound(IThread thread, XmXInfo info, Object[] obj)
{
}
public void xInboundLeave(IThread thread, XmXInfo info, Object[] obj)
{
}
}

View File

@@ -0,0 +1,24 @@
package com.exem.ext;
import com.exem.IThread;
import com.exem.IXRt;
import com.exem.jspd.state.XmXInfo;
import java.net.Socket;
public class XM_RT implements IXRt
{
public void onSocket(IThread thread, XmXInfo info, int mode, Socket socket)
{
if(mode == 5)
{
String remoteAddress = socket.getRemoteSocketAddress() + "";
String[] ss = remoteAddress.split("/");
info.s00 = ss[1];
}
}
public void onFile(IThread thread, XmXInfo info, int mode, String name)
{
}
}

View File

@@ -0,0 +1,46 @@
package com.exem.ext;
import com.exem.IXTxn;
import com.exem.IThread;
import com.exem.jspd.XmClass;
import com.exem.jspd.XmCommon;
import com.exem.weave.http.XmHttpRequest;
import com.exem.weave.http.XmHttpSession;
public class XM_TXN implements IXTxn
{
public String getName(Object svc, XmHttpRequest req)
{
return req.getRequestURI();
}
public String getName(String txnName, Object[] param)
{
return null;
}
public String getName(IThread thread, String txnName, Object[] param)
{
return txnName;
}
public String getName(XmHttpRequest req, Object obj)
{
return req.getRequestURI();
}
public String getIpAddr(String txnIp, Object obj)
{
return txnIp;
}
public String getLoginName(XmHttpRequest req, XmHttpSession session)
{
return null;
}
public void xHeaderInfo(IThread thread, XmHttpRequest req)
{
}
}

View File

@@ -0,0 +1,21 @@
package com.exem.ext;
import com.exem.TxnCallbackBase;
import com.exem.IThread;
public class XM_TXN_CALLBACK extends TxnCallbackBase {
public boolean isExcludeException(Object err) {
return super.isExcludeException(err);
}
public boolean isIncludeException(Object err) {
return super.isIncludeException(err);
}
public void beginTxn(IThread thread, Object[] param) {
}
public void endTxn(IThread thread, Object[] param, Object err) {
}
}

View File

@@ -0,0 +1,52 @@
package com.exem.sample;
import com.exem.IThread;
import com.exem.IXBound;
import com.exem.XmUtil;
import com.exem.jspd.XmClass;
import com.exem.jspd.XmConst;
import com.exem.jspd.XmCommon;
import com.exem.jspd.state.XmXDesc;
import com.exem.jspd.state.XmXInfo;
public class XM_BOUND_X implements IXBound
{
public int xCall(int index, IThread thread, XmXInfo info, Object[] obj)
{
String s = (String)XmClass.getMethod(obj[0], "getName");
s = s == null ? "call" : s;
index = thread.regMtdIndex("SAP", s);
info.s00 = s;
return index;
}
public void xOutbound(IThread thread, XmXInfo info, Object[] obj)
{
//System.out.println("##### SAP xOutbound");
byte[] xb = (byte[])obj[1];
//XmCommon.print("xOutbound xb:", xb);
byte[] conv_id = (byte[])XmClass.getField(obj[0], obj[0].getClass().getSuperclass(), "conv_id", true);
XmCommon.xstart(info);
XmCommon.x(info, conv_id);
XmCommon.x(info, info.s00.getBytes());
//XmCommon.print("xOutbound conv_id:", conv_id);
//XmCommon.print("xOutbound func:" + info.s00);
}
public void xReply(IThread thread, Object[] obj, XmXDesc desc)
{
}
public void xInboundEnter(IThread thread, XmXInfo info, Object[] obj)
{
}
public void xInbound(IThread thread, XmXInfo info, Object[] obj)
{
}
public void xInboundLeave(IThread thread, XmXInfo info, Object[] obj)
{
}
}

View File

@@ -0,0 +1,60 @@
package com.exem.sample;
import com.exem.IThread;
import com.exem.IXBound;
import com.exem.XmUtil;
import com.exem.jspd.XmClass;
import com.exem.jspd.XmConst;
import com.exem.jspd.XmCommon;
import com.exem.jspd.state.XmXDesc;
import com.exem.jspd.state.XmXInfo;
public class XM_BOUND_X implements IXBound
{
public int xCall(int index, IThread thread, XmXInfo info, Object[] obj)
{
String id = XmUtil.getParamStr(obj, "call");
index = thread.regMtdIndex("TP", id);
info.s00 = id;
return index;
}
public void xOutbound(IThread thread, XmXInfo info, Object[] obj)
{
//System.out.println("##### tmax xOutbound");
byte[] xb = (byte[])obj[2];
//System.out.println("xOutbound xb:" + new String(xb));
XmCommon.xstart(info);
info.x40 = new byte[32];
System.arraycopy(xb, 124, info.x40, 0, 32);
XmCommon.x(info, info.x40);
XmCommon.x(info, info.s00.getBytes());
//thread.udp().xHeaderInfo(thread.tid(), "P", (byte)6, xb, 124, 32);
//info.x41 = new byte[10];
//long l = System.currentTimeMillis();
//String os = OS[((int)(l % 6L))];
//String bank = BANK[((int)(l % 3L))];
//System.arraycopy(os.getBytes(), 0, info.x41, 0, 2);
//System.arraycopy(bank.getBytes(), 0, info.x41, 2, 3);
}
public void xReply(IThread thread, Object[] obj, XmXDesc desc)
{
}
public void xInboundEnter(IThread thread, XmXInfo info, Object[] obj)
{
}
public void xInbound(IThread thread, XmXInfo info, Object[] obj)
{
}
public void xInboundLeave(IThread thread, XmXInfo info, Object[] obj)
{
}
}

View File

@@ -0,0 +1,53 @@
package com.exem.sample;
import com.exem.IThread;
import com.exem.IXBound;
import com.exem.XmUtil;
import com.exem.jspd.XmClass;
import com.exem.jspd.XmConst;
import com.exem.jspd.XmCommon;
import com.exem.jspd.state.XmXDesc;
import com.exem.jspd.state.XmXInfo;
public class XM_BOUND_X implements IXBound
{
public int xCall(int index, IThread thread, XmXInfo info, Object[] obj)
{
String id = XmUtil.getParamStr(obj, "call");
index = thread.regMtdIndex("TP", id);
info.s00 = id;
return index;
}
public void xOutbound(IThread thread, XmXInfo info, Object[] obj)
{
//System.out.println("##### tuxedo xOutbound");
byte[] xb = (byte[])obj[1];
//System.out.println("xOutbound xb:" + new String(xb));
XmCommon.xstart(info);
info.x40 = new byte[8];
System.arraycopy(xb, 20, info.x40, 0, 8);
XmCommon.x(info, info.x40);
XmCommon.x(info, info.s00.getBytes());
}
public void xReply(IThread thread, Object[] obj, XmXDesc desc)
{
}
public void xInboundEnter(IThread thread, XmXInfo info, Object[] obj)
{
}
public void xInbound(IThread thread, XmXInfo info, Object[] obj)
{
}
public void xInboundLeave(IThread thread, XmXInfo info, Object[] obj)
{
}
}

View File

@@ -0,0 +1,54 @@
package com.exem.sample;
import com.exem.IThread;
import com.exem.IXBound;
import com.exem.XmUtil;
import com.exem.jspd.XmClass;
import com.exem.jspd.XmConst;
import com.exem.jspd.XmCommon;
import com.exem.jspd.state.XmXDesc;
import com.exem.jspd.state.XmXInfo;
public class XM_BOUND_X implements IXBound
{
public int xCall(int index, IThread thread, XmXInfo info, Object[] obj)
{
String s = thread.txn().getTxnName();
if (s.indexOf("/a") > -1)
{
info.s00 = "async" + s.substring(2);
}
else if (s.indexOf("/s") > -1)
{
info.s00 = s.substring(2);
}
return index;
}
public void xOutbound(IThread thread, XmXInfo info, Object[] obj)
{
byte[] b = (byte[])obj[1];
String s1 = new String( b, 277, 43);
XmCommon.xstart(info);
XmCommon.x(info, b, 12, 32);
if (s1.indexOf("Ext") > -1)
thread.udp().xHeaderInfo(thread.tid(), "fep_uid", XmConst.E_HEADER, s1);
}
public void xReply(IThread thread, Object[] obj, XmXDesc desc)
{
}
public void xInboundEnter(IThread thread, XmXInfo info, Object[] obj)
{
}
public void xInbound(IThread thread, XmXInfo info, Object[] obj)
{
}
public void xInboundLeave(IThread thread, XmXInfo info, Object[] obj)
{
}
}

View File

@@ -0,0 +1,55 @@
package com.exem.sample;
import com.exem.IThread;
import com.exem.IXBound;
import com.exem.XmUtil;
import com.exem.jspd.XmClass;
import com.exem.jspd.XmConst;
import com.exem.jspd.XmCommon;
import com.exem.jspd.state.XmXDesc;
import com.exem.jspd.state.XmXInfo;
public class XM_BOUND_X implements IXBound
{
public int xCall(int index, IThread thread, XmXInfo info, Object[] obj)
{
return index;
}
public void xOutbound(IThread thread, XmXInfo info, Object[] obj)
{
}
public void xReply(IThread thread, Object[] obj, XmXDesc desc)
{
}
public void xInboundEnter(IThread thread, XmXInfo info, Object[] obj)
{
Object o1 = XmClass.getMethod(obj[3], "getFieldValue","HFD_Standard_System_Header");
String s = (String)XmClass.getMethod(o1, "getFieldValue", "rcvSrvcCd");
thread.txn().setTxnName(s);
String s1 = (String)XmClass.getMethod(o1, "getFieldValue", "tlgrWrtnDt");
s1 += (String)XmClass.getMethod(o1, "getFieldValue", "tlgrCrtnSysNm");
s1 += (String)XmClass.getMethod(o1, "getFieldValue", "tlgrSrlNo");
s1 += (String)XmClass.getMethod(o1, "getFieldValue", "tlgrPrgrsNo");
String s2 = (String)XmClass.getMethod(o1, "getFieldValue", "orgnlTx");
String s3 = s2.substring(0,30);
String s4 = (String)XmClass.getMethod(o1, "getFieldValue","custId");
byte[] b = s3.getBytes();
XmCommon.xstart(info);
XmCommon.x(info, b);
thread.udp().xHeaderInfo(thread.tid(),"orgguid",XmConst.E_HEADER, s2);
thread.udp().xHeaderInfo(thread.tid(),"guid",XmConst.E_HEADER, s1);
thread.txn().setLoginName(s4);
}
public void xInbound(IThread thread, XmXInfo info, Object[] obj)
{
}
public void xInboundLeave(IThread thread, XmXInfo info, Object[] obj)
{
}
}

View File

@@ -0,0 +1,104 @@
package com.exem.sample;
import com.exem.IThread;
import com.exem.IXBound;
import com.exem.XmUtil;
import com.exem.jspd.XmClass;
import com.exem.jspd.XmConst;
import com.exem.jspd.XmCommon;
import com.exem.jspd.state.XmXDesc;
import com.exem.jspd.state.XmXInfo;
import java.text.SimpleDateFormat;
import java.util.Date;
public class XM_BOUND_X implements IXBound
{
private final static SimpleDateFormat sdf = new SimpleDateFormat("yyyy");
public int xCall(int index, IThread thread, XmXInfo info, Object[] obj)
{
index = thread.regMtdIndex("SVC", "call");
return index;
}
public void xOutbound(IThread thread, XmXInfo info, Object[] obj)
{
byte[] b = (byte[])obj[1];
String year = sdf.format(new Date());
boolean b1 = XmUtil.compBytes(b, 4, year.getBytes());
String s1 = new String((byte[])obj[1], 157, 1);
String s2 = obj[0].getClass().getName();
if (s2.indexOf("DefaultTransportEntity") > -1)
{
boolean b3 = XmUtil.compBytes(b, 12, year.getBytes());
if (b3)
{
XmCommon.xstart(info);
XmCommon.x(info, b, 12, 30);
}
}
else if (b1 && s1.equals("S"))
{
XmCommon.xstart(info);
XmCommon.x(info, b, 4, 30);
long l = info.x20;
info.x20 = l - 1;
try
{
thread.udp().xInfo(thread.tid(), thread.txn(), 'C', 1, 1, info, null);
}
catch (Throwable t)
{
XmCommon.print("Outbound Create C", t);
}
info.x20 = l;
}
}
public void xReply(IThread thread, Object[] obj, XmXDesc desc)
{
}
public void xInboundEnter(IThread thread, XmXInfo info, Object[] obj)
{
}
public void xInbound(IThread thread, XmXInfo info, Object[] obj)
{
byte[] b = (byte[])obj[1];
String year = sdf.format(new Date());
boolean b1 = XmUtil.compBytes(b, 12, year.getBytes());
String s1 = new String((byte[])obj[1], 165, 1);
String s2 = obj[0].getClass().getName();
if (s2.indexOf("DefaultTransportEntity") > -1)
{
if (b1)
{
XmCommon.xstart(info);
XmCommon.x(info, b, 12, 30);
}
}
else if (b1 && s1.equals("S"))
{
XmCommon.xstart(info);
XmCommon.x(info, b, 12, 30);
long l = info.x20;
info.x20 = l + 1;
try
{
thread.udp().xInfo(thread.tid(), thread.txn(), 'P', 1, 1, info, null);
}
catch (Throwable t)
{
XmCommon.print("Inbound Create P", t);
}
info.x20 = l;
}
}
public void xInboundLeave(IThread thread, XmXInfo info, Object[] obj)
{
}
}

View File

@@ -0,0 +1,70 @@
package com.exem.ext;
import com.exem.IXTxn;
import com.exem.IThread;
import com.exem.jspd.XmClass;
import com.exem.jspd.XmConst;
import com.exem.jspd.XmCommon;
import com.exem.weave.http.XmHttpRequest;
import com.exem.weave.http.XmHttpSession;
public class XM_TXN implements IXTxn
{
public String getName(Object svc, XmHttpRequest req)
{
return req.getRequestURI();
}
public String getName(String txnName, Object[] param)
{
return null;
}
public String getName(IThread thread, String txnName, Object[] param)
{
return txnName;
}
public String getName(XmHttpRequest req, Object obj)
{
byte[] b = (byte[])obj;
String s= new String(b, 277, 43);
IThread thread = com.exem.jspd.agent.XmMain.current();
if (s.indexOf("Ext") > -1)
{
thread.udp().xHeaderInfo(thread.tid(), "fep_uid", XmConst.E_HEADER, s);
}
if (b[500] == 0x30 && b[501] == 0x30);
else
{
String s1 = new String(b, 122, 13);
String s2 = "|";
s1 += s2;
s1 += new String(b, 12, 32);
s1 += s2;
s1 += new String(b, 321, 20);
s1 += s2;
s1 += new String(b, 507, 10);
s1 += s2;
s1 += new String(b, 517, 200);
thread.udp().xHeaderInfo(thread.tid(), "retmsg", XmConst.E_HEADER, s1);
}
return req.getRequestURI();
}
public String getIpAddr(String txnIp, Object obj)
{
return txnIp;
}
public String getLoginName(XmHttpRequest req, XmHttpSession session)
{
return null;
}
public void xHeaderInfo(IThread thread, XmHttpRequest req)
{
}
}

View File

@@ -0,0 +1,61 @@
package com.exem.ext;
import com.exem.IXTxn;
import com.exem.IThread;
import com.exem.jspd.XmClass;
import com.exem.jspd.XmConst;
import com.exem.jspd.XmCommon;
import com.exem.weave.http.XmHttpRequest;
import com.exem.weave.http.XmHttpSession;
public class XM_TXN implements IXTxn
{
public String getName(Object svc, XmHttpRequest req)
{
return req.getRequestURI();
}
public String getName(String txnName, Object[] param)
{
return null;
}
public String getName(IThread thread, String txnName, Object[] param)
{
return txnName;
}
public String getName(XmHttpRequest req, Object obj)
{
Object o1 = XmClass.getField(obj, "header");
String s1 = (String)XmClass.getMethod(o1, "getScrnId");
String s2 = (String)XmClass.getMethod(o1, "getSrvcCd");
String s3 = (String)XmClass.getMethod(o1, "getOrgGuid");
String s4 = (String)XmClass.getMethod(o1, "getGuid");
String s5 = (String)XmClass.getMethod(o1, "getCustId");
IThread thread = com.exem.jspd.agent.XmMain.current();
thread.udp().xHeaderInfo(thread.tid(), "orgguid", XmConst.E_HEADER, s3);
thread.udp().xHeaderInfo(thread.tid(), "guid", XmConst.E_HEADER, s4);
thread.udp().xHeaderInfo(thread.tid(), "custid", XmConst.E_HEADER, s5);
thread.txn().setLoginName(s5);
if (s1 == null)
return "+" + s2;
else
return s1 + "+" + s2;
}
public String getIpAddr(String txnIp, Object obj)
{
return txnIp;
}
public String getLoginName(XmHttpRequest req, XmHttpSession session)
{
return null;
}
public void xHeaderInfo(IThread thread, XmHttpRequest req)
{
}
}

View File

@@ -0,0 +1,54 @@
package com.exem.kepco;
import com.exem.IXTxn;
import com.exem.IThread;
import com.exem.jspd.XmClass;
import com.exem.jspd.XmCommon;
import com.exem.weave.http.XmHttpRequest;
import com.exem.weave.http.XmHttpSession;
public class XM_TXN implements IXTxn
{
public String getName(Object svc, XmHttpRequest req)
{
return req.getRequestURI();
}
public String getName(String txnName, Object[] param)
{
return null;
}
public String getName(IThread thread, String txnName, Object[] param)
{
XmCommon.print("11111");
String s = txnName;
Object o1 = param[1];
txnName = (String)o1 + "+" + s;
XmCommon.print("txnName:" + txnName);
String txnIp = "127.127.127.1";
thread.txn().setTxnIp(txnIp);
XmCommon.print("Ip:" + txnIp);
return txnName;
}
public String getName(XmHttpRequest req, Object obj)
{
return req.getRequestURI();
}
public String getIpAddr(String txnIp, Object obj)
{
return txnIp;
}
public String getLoginName(XmHttpRequest req, XmHttpSession session)
{
return null;
}
public void xHeaderInfo(IThread thread, XmHttpRequest req)
{
}
}

View File

@@ -0,0 +1,202 @@
package com.exem.sample;
import com.exem.IXTxn;
import com.exem.XmUtil;
import com.exem.IThread;
import com.exem.IUdpThread;
import com.exem.IXTxn;
import com.exem.jspd.XmClass;
import com.exem.jspd.XmCommon;
import com.exem.weave.http.XmHttpRequest;
import com.exem.weave.http.XmHttpSession;
public class XM_TXN_EXT implements IXTxn
{
private static final byte TRX_PARAMETER = 1;
private static final byte TRX_PARAM_NOURI = 2;
private static final byte TRX_ATTRIBUTRE = 3;
private static final byte APP_ATTRIBUTRE = 1;
private static final byte APP_COOKIE = 2;
public String getName(Object svc, XmHttpRequest req)
{
if (XmCommon.TRX_NAME_KEY.length == 0)
return req.getRequestURI();
String name = null;
switch (XmCommon.TRX_NAME_TYPE)
{
case TRX_PARAMETER:
case TRX_PARAM_NOURI:
String param = null;
for (int i = 0; i < XmCommon.TRX_NAME_KEY.length; i++)
{
String key = XmCommon.TRX_NAME_KEY[i];
String value = req.getParameter(key);
if (value != null)
{
if (param == null)
param = key + "=" + value;
else
param = param + "&" + key + "=" + value;
}
}
if (param != null)
{
if (XmCommon.TRX_NAME_TYPE == TRX_PARAM_NOURI)
name = param;
else
name = req.getRequestURI() + "?" + param;
}
break;
case TRX_ATTRIBUTRE:
name = (String) req.getAttribute(XmCommon.TRX_NAME_KEY[0]);
break;
}
return name;
}
public String getName(XmHttpRequest req, Object obj)
{
return req.getRequestURI();
}
public String getName(String txnName, Object[] obj)
{
return null;
}
public String getName(IThread thread, String txnName, Object[] obj)
{
return null;
}
public String getIpAddr(String ip, Object obj)
{
return ip;
}
public String getLoginName(XmHttpRequest req, XmHttpSession session)
{
String name = null;
switch (XmCommon.TRX_LOGIN_TYPE)
{
case APP_ATTRIBUTRE:
Object o1 = session.getAttribute(XmCommon.TRX_LOGIN_KEY);
if (o1 instanceof java.lang.String)
name = (String) o1;
break;
case APP_COOKIE:
name = XmCommon.Cookie_getValue(req, XmCommon.TRX_LOGIN_KEY);
break;
}
return name;
}
/* getName **************************************************** */
public String getServletName(Object svc, XmHttpRequest req)
{
Object o1;
if ((o1 = XmClass.getMethod(svc, "getServletName")) != null)
return (String) o1;
else if ((o1 = XmClass.getMethod(svc, "getServletConfig")) != null)
{
Object o2;
if ((o2 = XmClass.getMethod(svc, "getServletName")) != null)
return (String) o2;
}
return null;
}
public String getLastUri(Object svc, XmHttpRequest req)
{
String name = req.getRequestURI();
if (name.indexOf(XmCommon.TRX_NAME_KEY[0]) > -1)
{
int i = name.lastIndexOf('/');
if (i > -1)
return name.substring(i + 1);
else
return name;
}
return name;
}
public String getXFrame(String value)
{
try
{
String s = value.substring(12);
String src = new String(new sun.misc.BASE64Decoder().decodeBuffer(s));
int ix = 0;
String item[] = new String[6];
for (int i = 0; i < 6; i++)
{
ix++;
int len = XmUtil.byteArrayToInt(src.substring(ix, ix + 4).getBytes());
ix = ix + 4 + len;
len = XmUtil.byteArrayToInt(src.substring(ix, ix + 4).getBytes());
item[i] = src.substring(ix + 4, ix + 4 + len);
ix = ix + 4 + len;
}
return item[0] + "/" + item[1];
}
catch (Throwable t)
{
return null;
}
}
/* getName **************************************************** */
public String getProFrameV1(XmHttpRequest req, Object obj)
{
return (String) XmClass.getMethod(obj, "getPfmTxCode");
}
public String getProFrameV2(XmHttpRequest req, Object obj)
{
String name = req.getRequestURI();
name = name + "+" + XmClass.getMethod(obj, "getPfmFnCd") + "+" + XmClass.getMethod(obj, "getPfmTxCode");
return name;
}
public String getProFrameV3(XmHttpRequest req, Object obj)
{
return XmClass.getMethod(obj, "getPfmAppName") + "+" + XmClass.getMethod(obj, "getPfmSvcName") + "+" + XmClass.getMethod(obj, "getPfmFnName");
}
public String getNICSV1(XmHttpRequest req, Object obj)
{
return (String) obj;
}
public String getTITV1(XmHttpRequest req, Object obj)
{
int count = ((Integer) XmClass.getMethod(obj, "getRowCount")).intValue();
String[] values = new String[count];
Class[] acls = new Class[] { Integer.TYPE, String.class };
for (int i = 0; i < count; i++)
{
Object[] aobj = new Object[] { new Integer(i), "SQL_ID" };
values[i] = (String) XmClass.getMethod(obj, "getColumnAsString", acls, aobj);
}
return XmUtil.toString(values, ",");
}
/* getIpAddr ************************************************** */
public String getPfmClntIp(Object obj, String ip)
{
return (String) XmClass.getMethod(obj, "getPfmClntIp");
}
/* getLoginName *********************************************** */
public void xHeaderInfo(IThread thread, XmHttpRequest req);
{
String query = req.getQueryString();
String url = req.getRequestURL() + (query == null ? "" : new StringBuilder().append("?").append(query).toString());
thread.udp().xHeaderInfo(thread.tid(), "qa.url", (byte)1, url);
}
}

View File

@@ -0,0 +1,8 @@
set JSPD_HOME=
set JAVA_HOME=
set WAS_LIB=
set ANT_HOME=..\..\ant
set PATH=%ANT_HOME%\bin;%JAVA_HOME%\bin;%PATH%
ant -DWAS_LIB=%WAS_LIB% -DJSPD_HOME=%JSPD_HOME% $1
rem %JAVA_HOME%\bin\java -classpath %ANT_HOME%\lib\ant-launcher.jar -Dant.home=%ANT_HOME% -Dant.library.dir==%ANT_HOME%\lib org.apache.tools.ant.launch.Launcher -DWAS_LIB=%WAS_LIB% -DJSPD_HOME=%JSPD_HOME% %1

View File

@@ -0,0 +1,8 @@
export JSPD_HOME=
export JAVA_HOME=
export WAS_LIB=
export ANT_HOME=../../ant
export PATH=${ANT_HOME}/bin:${JAVA_HOME}/bin:${PATH}
ant -DWAS_LIB=${WAS_LIB} -DJSPD_HOME=${JSPD_HOME} $1
#${JAVA_HOME}/bin/java -classpath ${ANT_HOME}/lib/ant-launcher.jar -Dant.home=${ANT_HOME} -Dant.library.dir==${ANT_HOME}/lib org.apache.tools.ant.launch.Launcher -DWAS_LIB=${WAS_LIB} -DJSPD_HOME=${JSPD_HOME} $1

View File

@@ -0,0 +1,112 @@
<?xml version="1.0" encoding="euc-kr"?>
<project default="all" basedir=".">
<target name="all" depends="jspd,unjar,new,jar" />
<target name="jdk" depends="jspd,unjar,old,jar" />
<target name="jspd">
<property name="jar.name" value="jspd.jar" />
</target>
<target name="unjar">
<unjar src="../lib/${jar.name}" dest="bin">
</unjar>
</target>
<target name="new">
<delete file="bin/java/lang/ClassLoader.class" />
</target>
<target name="old">
<java classname="org.bsp.weave.aspectwerkz.Plug" fork="true" failonerror="true">
<classpath>
<pathelement path="bin" />
<pathelement path="${java.home}/../lib/tools.jar" />
<pathelement path="../lib/asm-1.5.4.jar" />
</classpath>
</java>
</target>
<target name="jar">
<zip destfile="../lib/${jar.name}">
<fileset dir="bin" />
</zip>
<delete dir="bin" />
</target>
<target name="home">
<unjar src="../lib/jspd.jar" dest="bin">
</unjar>
<unjar src="../lib/jspd-common.jar" dest="bin"></unjar>
<copy file="../cfg/jspd.home" tofile="bin/com/exem/jspd/home" overwrite="true" />
<zip destfile="../lib/jspd.jar">
<fileset dir="bin" />
</zip>
<delete dir="bin" />
</target>
<target name="was">
<unjar src="../lib/jspd.jar" dest="../">
<patternset>
<include name="cfg/jspd.aspect" />
</patternset>
</unjar>
<unjar src="../lib/jspd.jar" dest="../" overwrite="true">
<patternset>
<include name="cfg/jspd.jdbc.advice" />
<include name="cfg/jspd.bind.advice" />
<include name="cfg/jspd.other.advice" />
</patternset>
</unjar>
<unjar src="../lib/jspd.jar" dest="bin">
</unjar>
<unjar src="../lib/jspd-common.jar" dest="bin"></unjar>
<java classname="org.bsp.weave.scan.BwMain" fork="true" maxmemory="512m">
<classpath>
<pathelement location="bin" />
</classpath>
<jvmarg value="-Djspd.home=${JSPD_HOME}" />
<arg value="was" />
<arg value="${WAS_LIB}" />
<arg value="../cfg/jspd.aspect" />
<arg value="../cfg/jspd.advice" />
</java>
<delete dir="bin" />
</target>
<target name="scan">
<unjar src="../lib/jspd.jar" dest="../">
<patternset>
<include name="scan/jspd.aspect" />
</patternset>
</unjar>
<unjar src="../lib/jspd.jar" dest="bin">
</unjar>
<unjar src="../lib/jspd-common.jar" dest="bin"></unjar>
<java classname="org.bsp.weave.scan.BwMain" fork="true" maxmemory="512m">
<classpath>
<pathelement location="bin" />
</classpath>
<jvmarg value="-Djspd.home=${JSPD_HOME}" />
<arg value="was" />
<arg value="${SCAN_LIB}" />
<arg value="../scan/jspd.aspect" />
<arg value="../scan/jspd.advice" />
</java>
<delete dir="bin" />
</target>
<target name="wasfix">
<unjar src="../lib/jspd.jar" dest="../">
<patternset>
<include name="cfg/jspd.jdbc.advice" />
<include name="cfg/jspd.bind.advice" />
<include name="cfg/jspd.other.advice" />
</patternset>
</unjar>
</target>
<target name="advice">
<unjar src="../lib/jspd.jar" dest="bin"></unjar>
<unjar src="../lib/jspd-common.jar" dest="bin"></unjar>
<java classname="org.bsp.weave.scan.BwMain" fork="true" maxmemory="512m">
<classpath>
<pathelement location="bin" />
</classpath>
<jvmarg value="-Djspd.home=${JSPD_HOME}" />
<arg value="advice" />
<arg value="${WAS_LIB}" />
<arg value="${TARGET}" />
</java>
<delete dir="bin" />
</target>
</project>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,7 @@
set JAVA_HOME=
set ANT_HOME=..\..\ant
set PATH=%PATH%;%ANT_HOME%\bin
set JDK_FILE=C:\Program Files\Java\jdk1.7.0_80\jre\lib\rt.jar
ant -DJDK_FILE= "%JDK_FILE%" %1
rem "%JAVA_HOME%"\bin\java -classpath %ANT_HOME%\lib\ant-launcher.jar -Dant.home=%ANT_HOME% -Dant.library.dir==%ANT_HOME%\lib org.apache.tools.ant.launch.Launcher -DJDK_FILE= "%JDK_FILE%" %1

View File

@@ -0,0 +1,7 @@
export JAVA_HOME=
export ANT_HOME=../../ant
export PATH=${ANT_HOME}/bin:${JAVA_HOME}/bin:${PATH}
export JDK_FILE=/usr/java/jdk1.7.0_80/jre/lib/rt.jar
ant -DJDK_FILE="$JDK_FILE" $1
#${JAVA_HOME}/bin/java -classpath ${ANT_HOME}/lib/ant-launcher.jar -Dant.home=${ANT_HOME} -Dant.library.dir==${ANT_HOME}/lib org.apache.tools.ant.launch.Launcher -DJDK_FILE="$JDK_FILE" $1

View File

@@ -0,0 +1,126 @@
<?xml version="1.0" encoding="euc-kr"?>
<project default="all" basedir=".">
<property name="build" value="build" />
<property name="aj-rt.jar" location="aj-rt.jar" />
<property name="jspd-common.jar" location="../lib/jspd-common.jar" />
<property name="aspectjrt.jar" location="aspectjrt-1.5.3.jar" />
<!-- <property name="aspectjrt.jar" location="aspectjrt-1.8.9.jar" /> -->
<property name="aspectjweaver.jar" location="aspectjweaver-1.5.3.jar" />
<!-- <property name="aspectjweaver.jar" location="aspectjweaver-1.8.9.jar" /> -->
<property name="jspd-rt.jar" location="../lib/jspd-rt.jar" />
<property name="jdk.file" value="${JDK_FILE}" />
<property name="build.source.dir" value="${build}/buildsrc" />
<property name="build.target.dir" value="${build}/buildtgt" />
<taskdef resource="org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties">
<classpath>
<pathelement path="../../ant/lib/aspectjtools.jar" />
<!-- <pathelement path="../../ant/lib/aspectjtools-1.8.9.jar" /> -->
</classpath>
</taskdef>
<target name="file" depends="init,all_unjar,rt_file,end" />
<target name="socket" depends="init,all_unjar,rt_socket,end" />
<target name="throwable" depends="init,all_unjar,rt_throwable,end" />
<target name="io" depends="init,all_unjar,rt_io,end" />
<target name="http" depends="init,all_unjar,rt_http,end" />
<target name="all" depends="init,all_unjar,rt_all,end" />
<target name="driver.install">
<echo>driver.install JDK_FILE - ${jdk.file}</echo>
<echo>driver.install RT_PARAM - ${rt.param}</echo>
<unjar src="${aj-rt.jar}" dest="${build.source.dir}">
<patternset>
<include name="com/exem/jspd/XmRTWrapper.class" />
<include name="com/exem/jspd/XmRTWrapper$IWrap.class" />
<include name="com/exem/jspd/XmRTWrapper$OWrap.class" />
</patternset>
</unjar>
<iajc destDir="${build.target.dir}" inpath="${build.source.dir}" sourceroots="." verbose="on" showWeaveInfo="true" fork="true" source="1.3">
<classpath>
<pathelement path="${jspd-common.jar}" />
<pathelement path="${aspectjrt.jar}" />
<pathelement path="${aspectjweaver.jar}" />
</classpath>
</iajc>
<unjar src="${aj-rt.jar}" dest="${build.source.dir}">
<patternset>
<include name="**/*.class" />
</patternset>
</unjar>
</target>
<target name="driver.aj">
<unjar src="${aj-rt.jar}" dest="bin">
</unjar>
<java classname="com.exem.weave.AjMain" fork="true" maxmemory="512m">
<classpath>
<pathelement location="bin" />
</classpath>
<arg value="${rt.param}" />
</java>
</target>
<target name="init">
<delete file="${jspd-rt.jar}" />
<delete dir="bin" />
<delete dir="${build}" />
<mkdir dir="${build.source.dir}" />
</target>
<target name="end">
<jar basedir="${build.target.dir}" destfile="${jspd-rt.jar}" update="true" compress="true" />
<delete dir="bin" />
<delete dir="${build}" />
</target>
<target name="all_unjar">
<unjar src="${jdk.file}" dest="${build.source.dir}">
<patternset>
<include name="java/lang/Throwable.class" />
<include name="java/io/FileInputStream.class" />
<include name="java/io/FileOutputStream.class" />
<include name="java/net/Socket.class" />
<include name="java/net/ServerSocket.class" />
<include name="sun/net/www/protocol/http/HttpURLConnection.class" />
<include name="sun/net/www/http/HttpClient.class" />
</patternset>
</unjar>
</target>
<target name="rt_throwable">
<property name="rt.param" value="throwable" />
<antcall target="driver.aj" />
<antcall target="driver.install" />
</target>
<target name="rt_file">
<property name="rt.param" value="file" />
<antcall target="driver.aj" />
<antcall target="driver.install" />
</target>
<target name="rt_socket">
<property name="rt.param" value="socket" />
<antcall target="driver.aj" />
<antcall target="driver.install" />
</target>
<target name="rt_io">
<property name="rt.param" value="file socket" />
<antcall target="driver.aj" />
<antcall target="driver.install" />
</target>
<target name="rt_http">
<property name="rt.param" value="http" />
<antcall target="driver.aj" />
<antcall target="driver.install" />
</target>
<target name="rt_all">
<property name="rt.param" value="throwable file socket http" />
<antcall target="driver.aj" />
<antcall target="driver.install" />
</target>
</project>

View File

@@ -0,0 +1,3 @@
# IMXDBM ADDR=DB ADDR
# ex) 127.0.0.1:2604=127.0.0.1.1521.ora11203
# ex) 127.0.0.1:2605=127.0.0.1.1522.ora11204

View File

@@ -0,0 +1,255 @@
###############################################################################
# COMMON OPTIONS #
###############################################################################
#########################################
# NOT USED
# # 2: garbage clean log, 4: udp packet detail log, 8: udp packet detail log for send to imxdbm
# # 16: topology info detail log
# LOG_OPT=0
#
# # 1: prepare, 2: execute, 4: execute end, 8: jsp end, 16: active txn signal
# # 32: remotecall, 64: userdata, 128: real user monitor
# DEBUG=0
# NOT USED
#########################################
# common
# 1: cpu/core*, 2: exclude iowait
# linux
# 4: free memory = MemFree + Buffers + Cached
# sun
# 4: exclude network info
# aix
# 8: VP mode for cpu (Shared-SMT)
# 16(0x10): cpu/online_vcpus* (Shared-SMT)
# 32(0x20): no virtual free memory (default free memory = (real_total - virt_active) * 4 (4K Pages))
# 32768(0x8000): use perfstat_pagingspace (paging space usage)
CPU100=1
#Packet Queue Max Count
#MAX_UDP_QUEUE=20000
#MAX_TCP_QUEUE=2000
# info_log interval (sec)
# default: imxosm = 300 , imxtxn = 60
#INTERVAL_INFO_LOG=
# DG TCP Reconnect interval (ms)
# defaut: 5000
DG_RECONNECT_DELAY_TIME=5000
#if WAS process name is not a java
#WAS_PROCESS_NAME=
###############################################################################
# IMXOSM COMMON OPTIONS #
###############################################################################
#0 : DG 2016.12.19 before version
#1 : DG 2016.12.19 after version
# Gather Version(yyyymmdd)
#IMX_OSM_VERSION_FOR_GATHER_COMPATIBLE=
# 0 : disable_osm_standalone, 1 : enable_osmstandalone
#ENABLE_OSM_STANDALONE=0
# Collect NFS(Filesystem) type(Y:collect,N:not collect(default))
#COLLECT_FS_NFS=
# Use the option to run more than one imxosm on the local server.
# (preventing duplication collect of processes)
# 0 : master(default), 1 : slave
#IMX_OSM_SLAVE=
# Custom hostkey (hostkey = org_hostkey + sys_host + OSM_MODULE_KEY)
#OSM_MODULE_KEY=
# Windows Global Nameing MMF
# 0: Not use(default), 1: use global name mmf(.NET)
#USE_GLOBAL_NAMING_MMF=
# update manager setting
# target api server ip
API_SERVER_IP=
# target api server port
API_SERVER_PORT=
# update check interval setting (sec)
UPDATE_CHECK_INTERVAL=
# Maximum number of package versions to keep
BACKUP_PATH_COUNT=
###############################################################################
# IMXOSM TMAXTP OPTIONS #
###############################################################################
# imxtpm_tmax Config file path
TP_CONF_DIR=
# imxtpm_tmax Config file name (default: mxtpl.conf)
TP_CONF_FILE_NAME=mxtpl.conf
# imxtpm_tmax env file path for imxosm
TP_TMAX_ENV_DIR=
# imxtpm_tmax env file name (default: tmax.env)
TP_TMAX_ENV_FILE_NAME=tmax.env
# tmax tp process user name
TP_PROCESS_USER=tmax
# if filename = A/B/SLOG.123456
# set SLOG_DIR = A/B
SLOG_DIR=
# If the string is included in the SLOG, the data line is skipped.
# set SLOG_FILTER_TEXT = abc , def, ghi , ...
#SLOG_FILTER_TEXT
# tpcall (tmadmin data) interval second
TPCALL_INTERVAL=10
# The number of failures of TPCALL sending an error alarm
TPCALL_ERROR_REPEAT=3
# Skip processing for an active transaction that is longer than the set value.(ms)
ACTIVE_ELAPSE_LIMIT=0
# Skip active transactions shorter than this value.
ACTIVE_ELAPSE_TIME=0
# 0: OFF (default) 1: shm active txn logging (Dynamic Option)
TP_SHM_DEBUG=0
## TPCALL_DEBUG_TYPE (Dynamic Option)
## (ex: TP_CALL_DEBUG_TYPE=12 --> MXTSVGCONF(4), MXTSVRCONF(8) logging)
## 0: NONE(OFF)(default)
## 1: MXTDOMAINCONF
## 2: MXTNODECONF
## 4: MXTSVGCONF
## 8: MXTSVRCONF
## 16: MXTSVCCONF
## 32: MXTSVRSTAT
## 64: MXTSPRSTATEX
## 128: MXTSVCSTATEX
## 256: MXTCLIINFO
TPCALL_DEBUG=0
## The selected service does not perform.
## 0: all gathering.(default)
## The remaining values are the same as in the "TPCALL_DEBUG_TYPE" option above
## (ex: TP_NOTGATHER_STAT=12 --> MXTSVCCONF(4), MXTSVRCONF(8) Do not collect data.)
TP_NOTGATHER_STAT=0
###############################################################################
# IMXOSM TUXEDO OPTIONS #
###############################################################################
# imxtpm_tuxedo Config file path
TUX_CONF_DIR=/home/tuxedo/tm_agent
# imxtpm_tuxedo Config file name (default: mxtup.conf)
TUX_CONF_FILE_NAME=mxtup.conf
# if filename = A/B/ULOG.123456
# set TUX_ULOG_FILE = A/B/ULOG
TUX_ULOG_FILE=$TUXDIR/ULOG
# library debug on/off
TUX_LIB_DEBUG=0
# stat data interval
TUX_STAT_INTERVAL=10
# 0 : All, 1 : stat off 2: server off 4:service off 8: client off 16:queue off
TUX_NOTGATHER_STAT=0
# 0 : off, 1 : stat on 2: server on 4:service on 8: client on 16:queue on
TUX_STAT_DEBUG=0
###############################################################################
# IMXOSM C API OPTIONS #
###############################################################################
# imxosm shared memory read interval (ms)
APIM_READ_INTERVAL=1000
# imxosm debug log setting
APIM_DEBUG_LOG=0
###############################################################################
# IMXTXN OPTIONS #
###############################################################################
# Packet Debugging Options ( Multiple selections are available )
# [ 0] ALLOFF
# [ 1] TRANSACTION_PROCESSING ( PREPARE/EXECUTE_BEGIN/EXECUTE_END/JSP_END )
# [ 2] SQL_PROCESSING ( PREPARE/EXECUTE_BEGIN/EXECUTE_END )
# [ 3] SQL_TEXT ( SQL_TEXT )
# [ 4] ACTIVE_TXN ( ACTIVE_TXN_SIGNAL )
# [ 5] REMOTECALL_PROCESSING ( REMOTECALL )
# Warning) Do not use together No. 1 and No. 2.
# ex) XM_LOG_OPT=1,3,4
XM_LOG_OPT=0
# imxtxn worker thread count
WORKING_THREAD_COUNT=1
# Gather Version(yyyymmdd)
#IMX_DATAGATHER_PACKET_VERSION=
# Send Packet to imxdbm (default:1, 0:OFF 1:ON)
SEND_UDP_TO_DBM=0
# 0 : disable_txn_standalone, 1 : enable_txnstandalone
ENABLE_TXN_STANDALONE=0
# Collect only sql information with longer SQL elapse time.(ms)
SQL_DETAIL_ELAPSE_LIMIT=0
###############################################################################
# IMXDBM OPTIONS #
###############################################################################
# env server port
ENV_PORT=2405
# DB Address, copy address from imx.dbm file.
# DB_ADDR=127.0.0.1.1521.orcl (IP.PORT.SID)
# session status filter
# 1: active, 2: exclude inactive background, 3: both
SESSION_LIST_OPT=1
###############################################################################
# IMXTXN SITE OPTIONS #
###############################################################################
# 0: send all, 0<: send limit(per sec), 10000(defualt, max): max send count
#MAX_SEND_BIND_LIST_COUNT=0
# Add sql bind space (default:1, OFF:0 ON:1)
#INPUT_SPACE_SQL_BIND=1
# SQL TEXT TRIM (HEAD) (default:0, HEAD+TAIL:0 HEAD:1)
#SQL_LEFT_TRIM=0
# USE CONVERT SQL TEXT UTF8->EUCKR (default:0, OFF:0 ON:1)
#SQL_TEXT_CONVERT_UTF8_EUCKR=0
# txn sql_text hash count (default: 5000)
#MAX_SQL_TEXT_HASH_COUNT=5000
# USE Topology Key1, Key3, dest (default:0)
#USE_KEYS_FOR_REMOTE_TOPOLOGY_ADDR=1
# Use open_addr for topology address (default:0, OFF:0 ON:1, if USE_KEYS_FOR_REMOTE_TOPOLOGY_ADDR=1 this option is ignore)
#USE_OPEN_ADDR_FOR_REMOTE_TOPOLOGY_ADDR=0

View File

@@ -0,0 +1,28 @@
[ imxosm ]
directory = ${INTERMAX_HOME}/log/imx
# filename = imxosm.log
output_type = file
level = info
header_flag = time,pid,level
limit_file_size = 10
#backup_directory = ${INTERMAX_HOME}/log/imx
backup_file_count = 3
[ imxtxn ]
directory = ${INTERMAX_HOME}/log/imx
# filename = imxtxn.log
output_type = file
level = info
header_flag = time,pid,level
limit_file_size = 10
#backup_directory = ${INTERMAX_HOME}/log/imx
backup_file_count = 3
[ debug_console ]
output_type = stdout
level = trace
header_flag = time

Some files were not shown because too many files have changed in this diff Show More