Commit 19e4a17a authored by afreyssin's avatar afreyssin

Merge with ScalAgent CVS for 4.1

parent f60f0a79
@echo off
echo == Launching the graphical administration tool ==
call setHome
set JORAM_LIBS=%JORAM_HOME%\lib
set CONFIG_ENV=%JORAM_HOME%\samples\config
set CLASSPATH=%JORAM_LIBS%\joram-gui.jar
set CLASSPATH=%CLASSPATH%;%JORAM_LIBS%\joram-client.jar
set CLASSPATH=%CLASSPATH%;%JORAM_LIBS%\joram-shared.jar
set CLASSPATH=%CLASSPATH%;%JORAM_LIBS%\JCup.jar
set CLASSPATH=%CLASSPATH%;%JORAM_LIBS%\jms.jar
set CLASSPATH=%CLASSPATH%;%JORAM_LIBS%\jndi.jar
set CLASSPATH=%CLASSPATH%;%JORAM_LIBS%\log4j.jar
set CLASSPATH=%CLASSPATH%;%JORAM_LIBS%\ow_monolog.jar
set CLASSPATH=%CLASSPATH%;%CONFIG_ENV%
%JAVA_HOME%\bin\java -classpath %CLASSPATH% org.objectweb.joram.client.tools.admin.AdminTool
@echo off
REM Verify if JORAM_HOME is well defined
if not exist "%JORAM_HOME%\samples\bin\admin.bat" goto nokHome
REM Verify if JAVA_HOME is well defined
if not exist "%JAVA_HOME%\bin\java.exe" goto nokJava
set CONFIG_DIR=%JORAM_HOME%\samples\config
set JORAM_LIBS=%JORAM_HOME%\ship\lib
set RUN_DIR=%JORAM_HOME%\samples\run
REM Building the Classpath
set CLASSPATH=%JORAM_LIBS%\joram-gui.jar
set CLASSPATH=%CLASSPATH%;%JORAM_LIBS%\joram-client.jar
set CLASSPATH=%CLASSPATH%;%JORAM_LIBS%\joram-shared.jar
set CLASSPATH=%CLASSPATH%;%JORAM_LIBS%\JCup.jar
set CLASSPATH=%CLASSPATH%;%JORAM_LIBS%\jms.jar
set CLASSPATH=%CLASSPATH%;%JORAM_LIBS%\jndi.jar
set CLASSPATH=%CLASSPATH%;%JORAM_LIBS%\ow_monolog.jar
set CLASSPATH=%CLASSPATH%;%RUN_DIR%
mkdir %RUN_DIR%
copy %CONFIG_DIR%\a3debug.cfg %RUN_DIR%\a3debug.cfg
copy %CONFIG_DIR%\jndi.properties %RUN_DIR%\jndi.properties
echo == Launching the graphical administration tool ==
start /D %RUN_DIR% /B %JAVA_HOME%\bin\java -classpath %CLASSPATH% org.objectweb.joram.client.tools.admin.AdminTool
goto end
:nokHome
echo The JORAM_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program
goto end
:nokJava
echo The JAVA_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program
goto end
:end
#!/bin/sh
# CYGWIN specific support.
cygwin=false
case "`uname`" in
CYGWIN*) cygwin=true;;
esac
# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin; then
[ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
[ -n "$JORAM_HOME" ] && JORAM_HOME=`cygpath --unix "$JORAM_HOME"`
[ -n "$CLASSPATH" ] && CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
fi
# Verify if JORAM_HOME is well defined
if [ ! -r "$JORAM_HOME"/samples/bin/admin.sh ]; then
echo "The JORAM_HOME environment variable is not defined correctly"
echo "This environment variable is needed to run this program"
exit 1
fi
# Verify if JAVA_HOME is well defined
if [ ! -r "$JAVA_HOME"/bin/java ]; then
echo "The JAVA_HOME environment variable is not defined correctly"
echo "This environment variable is needed to run this program"
exit 1
fi
CONFIG_DIR=$JORAM_HOME/samples/config
JORAM_LIBS=$JORAM_HOME/ship/lib
RUN_DIR=$JORAM_HOME/samples/run
# Building the Classpath
CLASSPATH=$JORAM_LIBS/joram-gui.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/joram-client.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/joram-shared.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/JCup.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/jms.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/jndi.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/ow_monolog.jar
CLASSPATH=$CLASSPATH:$RUN_DIR
mkdir $RUN_DIR
cp $CONFIG_DIR/a3debug.cfg $RUN_DIR/a3debug.cfg
cp $CONFIG_DIR/jndi.properties $RUN_DIR/jndi.properties
# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
JORAM_HOME=`cygpath --path --windows "$JORAM_HOME"`
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
fi
echo "== Launching the graphical administration tool =="
cd $RUN_DIR; exec $JAVA_HOME/bin/java -classpath $CLASSPATH org.objectweb.joram.client.tools.admin.AdminTool
@echo off
REM Verify if JORAM_HOME is well defined
if not exist "%JORAM_HOME%\samples\bin\admin.bat" goto nokHome
set RUN_DIR=%JORAM_HOME%\samples\run
echo == Cleaning the persistence directories and configuration settings ==
rmdir /s /q %RUN_DIR%
goto end
:nokHome
echo The JORAM_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program
goto end
:end
#!/bin/sh
# CYGWIN specific support.
cygwin=false
case "`uname`" in
CYGWIN*) cygwin=true;;
esac
# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin; then
[ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
[ -n "$JORAM_HOME" ] && JORAM_HOME=`cygpath --unix "$JORAM_HOME"`
[ -n "$CLASSPATH" ] && CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
fi
# Verify if JORAM_HOME is well defined
if [ ! -r "$JORAM_HOME"/samples/bin/admin.sh ]; then
echo "The JORAM_HOME environment variable is not defined correctly"
echo "This environment variable is needed to run this program"
exit 1
fi
RUN_DIR=$JORAM_HOME/samples/run
echo "== Cleaning the persistence directories and configuration settings =="
rm -rf $RUN_DIR
@echo off
REM Verify if JORAM_HOME is well defined
if not exist "%JORAM_HOME%\samples\bin\admin.bat" goto nokHome
REM Verify if JAVA_HOME is well defined
if not exist "%JAVA_HOME%\bin\java.exe" goto nokJava
REM Test the argument number
if [%1]==[] goto no_arg
if not [%2]==[] goto too_many_args
set CONFIG_DIR=%JORAM_HOME%\samples\config
set JORAM_LIBS=%JORAM_HOME%\ship\lib
set RUN_DIR=%JORAM_HOME%\samples\run
set SAMPLE_CLASSES=%JORAM_HOME%\samples\classes\joram
REM Building the Classpath
set CLASSPATH=%JORAM_LIBS%\joram-client.jar
set CLASSPATH=%CLASSPATH%;%JORAM_LIBS%\joram-shared.jar
set CLASSPATH=%CLASSPATH%;%JORAM_LIBS%\JCup.jar
set CLASSPATH=%CLASSPATH%;%JORAM_LIBS%\jms.jar
set CLASSPATH=%CLASSPATH%;%JORAM_LIBS%\jndi.jar
set CLASSPATH=%CLASSPATH%;%JORAM_LIBS%\ow_monolog.jar
set CLASSPATH=%CLASSPATH%;%SAMPLE_CLASSES%
set CLASSPATH=%CLASSPATH%;%RUN_DIR%
mkdir %RUN_DIR%
copy %CONFIG_DIR%\a3debug.cfg %RUN_DIR%\a3debug.cfg
copy %CONFIG_DIR%\jndi.properties %RUN_DIR%\jndi.properties
echo == Launching the %1 client ==
echo %CLASSPATH%
start /D %RUN_DIR% /B %JAVA_HOME%\bin\java -classpath %CLASSPATH% %1
goto end
:nokHome
echo The JORAM_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program
goto end
:nokJava
echo The JAVA_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program
goto end
:no_arg
echo !! Missing classname argument !!
goto usage
:too_many_args
echo !! Too many arguments !!
goto usage
:usage
echo jmsclient <classname>
:end
#!/bin/sh
# CYGWIN specific support.
cygwin=false
case "`uname`" in
CYGWIN*) cygwin=true;;
esac
# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin; then
[ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
[ -n "$JORAM_HOME" ] && JORAM_HOME=`cygpath --unix "$JORAM_HOME"`
[ -n "$CLASSPATH" ] && CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
fi
# Verify if JORAM_HOME is well defined
if [ ! -r "$JORAM_HOME"/samples/bin/admin.sh ]; then
echo "The JORAM_HOME environment variable is not defined correctly"
echo "This environment variable is needed to run this program"
exit 1
fi
# Verify if JAVA_HOME is well defined
if [ ! -r "$JAVA_HOME"/bin/java ]; then
echo "The JAVA_HOME environment variable is not defined correctly"
echo "This environment variable is needed to run this program"
exit 1
fi
# Test the argument number
if [ -z $1 ]
then
echo "!! Missing file argument !!"
exit 1
fi
if [ ! -z $2 ]
then
echo "!! Too many arguments !!"
exit 1
fi
CONFIG_DIR=$JORAM_HOME/samples/config
JORAM_LIBS=$JORAM_HOME/ship/lib
RUN_DIR=$JORAM_HOME/samples/run
SAMPLE_CLASSES=$JORAM_HOME/samples/classes/joram
# Building the Classpath
CLASSPATH=$JORAM_LIBS/joram-client.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/joram-shared.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/JCup.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/jms.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/jndi.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/ow_monolog.jar
CLASSPATH=$CLASSPATH:$SAMPLE_CLASSES
CLASSPATH=$CLASSPATH:$RUN_DIR
mkdir $RUN_DIR
cp $CONFIG_DIR/a3config.dtd $RUN_DIR/a3config.dtd
cp $CONFIG_DIR/a3debug.cfg $RUN_DIR/a3debug.cfg
cp $CONFIG_DIR/distributed_a3servers.xml $RUN_DIR/a3servers.xml
cp $CONFIG_DIR/jndi.properties $RUN_DIR/jndi.properties
# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
JORAM_HOME=`cygpath --path --windows "$JORAM_HOME"`
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
fi
echo "== Launching the $1 client =="
cd $RUN_DIR; exec $JAVA_HOME/bin/java -classpath $CLASSPATH $1
@echo off
REM Verify if JORAM_HOME is well defined
if not exist "%JORAM_HOME%\samples\bin\admin.bat" goto nokHome
REM Verify if JAVA_HOME is well defined
if not exist "%JAVA_HOME%\bin\java.exe" goto nokJava
set CONFIG_DIR=%JORAM_HOME%\samples\config
set JORAM_LIBS=%JORAM_HOME%\ship\lib
set RUN_DIR=%JORAM_HOME%\samples\run
REM Building the Classpath
set CLASSPATH=%JORAM_LIBS%\joram-mom.jar
set CLASSPATH=%CLASSPATH%;%JORAM_LIBS%\joram-shared.jar
set CLASSPATH=%CLASSPATH%;%JORAM_LIBS%\xerces.jar
set CLASSPATH=%CLASSPATH%;%JORAM_LIBS%\JCup.jar
set CLASSPATH=%CLASSPATH%;%JORAM_LIBS%\jakarta-regexp-1.2.jar
set CLASSPATH=%CLASSPATH%;%JORAM_LIBS%\ow_monolog.jar
set CLASSPATH=%CLASSPATH%;%RUN_DIR%
mkdir %RUN_DIR%
copy %CONFIG_DIR%\a3config.dtd %RUN_DIR%\a3config.dtd
copy %CONFIG_DIR%\a3debug.cfg %RUN_DIR%\a3debug.cfg
copy %CONFIG_DIR%\distributed_a3servers.xml %RUN_DIR%\a3servers.xml
copy %CONFIG_DIR%\jndi.properties %RUN_DIR%\jndi.properties
echo == Launching a persistent server#%1 ==
start /D %RUN_DIR% /B %JAVA_HOME%\bin\java -classpath %CLASSPATH% fr.dyade.aaa.agent.AgentServer %1 ./s%1
goto end
:nokHome
echo The JORAM_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program
goto end
:nokJava
echo The JAVA_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program
goto end
:end
#!/bin/sh
# CYGWIN specific support.
cygwin=false
case "`uname`" in
CYGWIN*) cygwin=true;;
esac
# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin; then
[ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
[ -n "$JORAM_HOME" ] && JORAM_HOME=`cygpath --unix "$JORAM_HOME"`
[ -n "$CLASSPATH" ] && CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
fi
# Verify if JORAM_HOME is well defined
if [ ! -r "$JORAM_HOME"/samples/bin/admin.sh ]; then
echo "The JORAM_HOME environment variable is not defined correctly"
echo "This environment variable is needed to run this program"
exit 1
fi
# Verify if JAVA_HOME is well defined
if [ ! -r "$JAVA_HOME"/bin/java ]; then
echo "The JAVA_HOME environment variable is not defined correctly"
echo "This environment variable is needed to run this program"
exit 1
fi
# Test the argument number
if [ -z $1 ]
then
echo "!! Missing file argument !!"
exit 1
fi
if [ ! -z $2 ]
then
echo "!! Too many arguments !!"
exit 1
fi
CONFIG_DIR=$JORAM_HOME/samples/config
JORAM_LIBS=$JORAM_HOME/ship/lib
RUN_DIR=$JORAM_HOME/samples/run
# Building the Classpath
CLASSPATH=$JORAM_LIBS/joram-mom.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/joram-shared.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/xerces.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/jakarta-regexp-1.2.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/JCup.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/ow_monolog.jar
CLASSPATH=$CLASSPATH:$RUN_DIR
mkdir $RUN_DIR
cp $CONFIG_DIR/a3config.dtd $RUN_DIR/a3config.dtd
cp $CONFIG_DIR/a3debug.cfg $RUN_DIR/a3debug.cfg
cp $CONFIG_DIR/distributed_a3servers.xml $RUN_DIR/a3servers.xml
cp $CONFIG_DIR/jndi.properties $RUN_DIR/jndi.properties
# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
JORAM_HOME=`cygpath --path --windows "$JORAM_HOME"`
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
fi
echo "== Launching a persistent server#$1 =="
cd $RUN_DIR; exec $JAVA_HOME/bin/java -classpath $CLASSPATH fr.dyade.aaa.agent.AgentServer $1 ./s$1
@echo off
REM Verify if JORAM_HOME is well defined
if not exist "%JORAM_HOME%\samples\bin\admin.bat" goto nokHome
REM Verify if JAVA_HOME is well defined
if not exist "%JAVA_HOME%\bin\java.exe" goto nokJava
set CONFIG_DIR=%JORAM_HOME%\samples\config
set JORAM_LIBS=%JORAM_HOME%\ship\lib
set RUN_DIR=%JORAM_HOME%\samples\run
REM Building the Classpath
set CLASSPATH=%JORAM_LIBS%\joram-mom.jar
set CLASSPATH=%CLASSPATH%;%JORAM_LIBS%\joram-shared.jar
set CLASSPATH=%CLASSPATH%;%JORAM_LIBS%\xerces.jar
set CLASSPATH=%CLASSPATH%;%JORAM_LIBS%\JCup.jar
set CLASSPATH=%CLASSPATH%;%JORAM_LIBS%\jakarta-regexp-1.2.jar
set CLASSPATH=%CLASSPATH%;%JORAM_LIBS%\ow_monolog.jar
set CLASSPATH=%CLASSPATH%;%RUN_DIR%
mkdir %RUN_DIR%
copy %CONFIG_DIR%\a3config.dtd %RUN_DIR%\a3config.dtd
copy %CONFIG_DIR%\a3debug.cfg %RUN_DIR%\a3debug.cfg
copy %CONFIG_DIR%\centralized_a3servers.xml %RUN_DIR%\a3servers.xml
copy %CONFIG_DIR%\jndi.properties %RUN_DIR%\jndi.properties
echo == Launching a non persistent server#0 ==
start /D %RUN_DIR% /B %JAVA_HOME%\bin\java -classpath %CLASSPATH% fr.dyade.aaa.agent.AgentServer 0 ./s0
goto end
:nokHome
echo The JORAM_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program
goto end
:nokJava
echo The JAVA_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program
goto end
:end
#!/bin/sh
# CYGWIN specific support.
cygwin=false
case "`uname`" in
CYGWIN*) cygwin=true;;
esac
# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin; then
[ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
[ -n "$JORAM_HOME" ] && JORAM_HOME=`cygpath --unix "$JORAM_HOME"`
[ -n "$CLASSPATH" ] && CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
fi
# Verify if JORAM_HOME is well defined
if [ ! -r "$JORAM_HOME"/samples/bin/admin.sh ]; then
echo "The JORAM_HOME environment variable is not defined correctly"
echo "This environment variable is needed to run this program"
exit 1
fi
# Verify if JAVA_HOME is well defined
if [ ! -r "$JAVA_HOME"/bin/java ]; then
echo "The JAVA_HOME environment variable is not defined correctly"
echo "This environment variable is needed to run this program"
exit 1
fi
CONFIG_DIR=$JORAM_HOME/samples/config
JORAM_LIBS=$JORAM_HOME/ship/lib
RUN_DIR=$JORAM_HOME/samples/run
# Building the Classpath
CLASSPATH=$JORAM_LIBS/joram-mom.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/joram-shared.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/xerces.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/jakarta-regexp-1.2.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/JCup.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/ow_monolog.jar
CLASSPATH=$CLASSPATH:$RUN_DIR
mkdir $RUN_DIR
cp $CONFIG_DIR/a3config.dtd $RUN_DIR/a3config.dtd
cp $CONFIG_DIR/a3debug.cfg $RUN_DIR/a3debug.cfg
cp $CONFIG_DIR/centralized_a3servers.xml $RUN_DIR/a3servers.xml
cp $CONFIG_DIR/jndi.properties $RUN_DIR/jndi.properties
# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
JORAM_HOME=`cygpath --path --windows "$JORAM_HOME"`
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
fi
echo "== Launching a non persistent server#0 =="
cd $RUN_DIR; exec $JAVA_HOME/bin/java -classpath $CLASSPATH fr.dyade.aaa.agent.AgentServer 0 ./s0
#!/bin/sh
echo "== Launching the graphical administration tool =="
. setHome.sh
JORAM_LIBS=$JORAM_HOME/lib
CONFIG_ENV=$JORAM_HOME/samples/config
CLASSPATH=$JORAM_LIBS/joram-gui.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/joram-client.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/joram-shared.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/JCup.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/jms.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/jndi.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/log4j.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/ow_monolog.jar
CLASSPATH=$CLASSPATH:$CONFIG_ENV
$JAVA_HOME/bin/java -classpath $CLASSPATH org.objectweb.joram.client.tools.admin.AdminTool
#!/bin/sh
echo "== Cleaning the persistence directories and configuration settings =="
. setHome.sh
CONFIG_HOME=$JORAM_HOME/samples/config
RUN_DIR=$JORAM_HOME/samples/run
rm $CONFIG_HOME/a3servers.xml
rm $CONFIG_HOME/jndi.properties
rm -rf $RUN_DIR
#!/bin/sh
if [ -z $1 ]
then
echo "!! Missing file argument !!"
exit 1
fi
if [ ! -z $2 ]
then
echo "!! Too many arguments !!"
exit 1
fi
echo "== Launching the $1 client =="
. setHome.sh
JORAM_LIBS=$JORAM_HOME/lib
SAMPLE_CLASSES=$JORAM_HOME/samples/classes/joram
CONFIG_ENV=$JORAM_HOME/samples/config
CLASSPATH=$JORAM_LIBS/jms.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/jndi.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/joram-client.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/joram-shared.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/JCup.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/log4j.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/ow_monolog.jar
CLASSPATH=$CLASSPATH:$SAMPLE_CLASSES
CLASSPATH=$CLASSPATH:$CONFIG_ENV
$JAVA_HOME/bin/java -classpath $CLASSPATH $1
#!/bin/sh
echo "== Launching a persistent server s0 =="
. setHome.sh
JORAM_LIBS=$JORAM_HOME/lib
CONFIG_HOME=$JORAM_HOME/samples/config
RUN_DIR=$JORAM_HOME/samples/run
# Building the Classpath
CLASSPATH=$JORAM_LIBS/joram-mom.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/joram-shared.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/xerces.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/JCup.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/jakarta-regexp-1.2.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/log4j.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/ow_monolog.jar
CLASSPATH=$CLASSPATH:$CONFIG_HOME
cp $CONFIG_HOME/distributed_a3servers.xml $CONFIG_HOME/a3servers.xml
cp $CONFIG_HOME/tcp_jndi.properties $CONFIG_HOME/jndi.properties
if [ ! -d $JORAM_HOME/samples/run ]
then
mkdir $RUN_DIR
fi
cd $RUN_DIR
$JAVA_HOME/bin/java -classpath $CLASSPATH -DTransaction=fr.dyade.aaa.util.ATransaction fr.dyade.aaa.agent.AgentServer 0 ./s0
#!/bin/sh
echo "== Launching a persistent server s1 =="
. setHome.sh
JORAM_LIBS=$JORAM_HOME/lib
CONFIG_HOME=$JORAM_HOME/samples/config
RUN_DIR=$JORAM_HOME/samples/run
# Building the Classpath
CLASSPATH=$JORAM_LIBS/joram-mom.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/joram-shared.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/xerces.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/JCup.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/jakarta-regexp-1.2.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/log4j.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/ow_monolog.jar
CLASSPATH=$CLASSPATH:$CONFIG_HOME
cp $CONFIG_HOME/distributed_a3servers.xml $CONFIG_HOME/a3servers.xml
cp $CONFIG_HOME/tcp_jndi.properties $CONFIG_HOME/jndi.properties
if [ ! -d $JORAM_HOME/samples/run ]
then
mkdir $RUN_DIR
fi
cd $RUN_DIR
$JAVA_HOME/bin/java -classpath $CLASSPATH -DTransaction=fr.dyade.aaa.util.ATransaction fr.dyade.aaa.agent.AgentServer 1 ./s1
#!/bin/sh
echo "== Launching a persistent server s2 =="
. setHome.sh
JORAM_LIBS=$JORAM_HOME/lib
CONFIG_HOME=$JORAM_HOME/samples/config
RUN_DIR=$JORAM_HOME/samples/run
# Building the Classpath
CLASSPATH=$JORAM_LIBS/joram-mom.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/joram-shared.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/xerces.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/JCup.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/jakarta-regexp-1.2.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/log4j.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/ow_monolog.jar
CLASSPATH=$CLASSPATH:$CONFIG_HOME
cp $CONFIG_HOME/distributed_a3servers.xml $CONFIG_HOME/a3servers.xml
cp $CONFIG_HOME/tcp_jndi.properties $CONFIG_HOME/jndi.properties
if [ ! -d $JORAM_HOME/samples/run ]
then
mkdir $RUN_DIR
fi
cd $RUN_DIR
$JAVA_HOME/bin/java -classpath $CLASSPATH -DTransaction=fr.dyade.aaa.util.ATransaction fr.dyade.aaa.agent.AgentServer 2 ./s2
#!/bin/sh
# Set JORAM_HOME to point to your Joram directory
# (containing the samples and lib directories)
JORAM_HOME=$HOME/joram
#!/bin/sh
echo "== Launching a transient server 0 =="
. setHome.sh
JORAM_LIBS=$JORAM_HOME/lib
CONFIG_HOME=$JORAM_HOME/samples/config
RUN_DIR=$JORAM_HOME/samples/run
# Building the Classpath
CLASSPATH=$JORAM_LIBS/joram-mom.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/joram-shared.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/xerces.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/JCup.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/jakarta-regexp-1.2.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/log4j.jar
CLASSPATH=$CLASSPATH:$JORAM_LIBS/ow_monolog.jar
CLASSPATH=$CLASSPATH:$CONFIG_HOME
cp $CONFIG_HOME/centralized_a3servers.xml $CONFIG_HOME/a3servers.xml
cp $CONFIG_HOME/tcp_jndi.properties $CONFIG_HOME/jndi.properties
mkdir $RUN_DIR
cd $RUN_DIR
$JAVA_HOME/bin/java -classpath $CLASSPATH -DTransaction=fr.dyade.aaa.util.NullTransaction fr.dyade.aaa.agent.AgentServer 0 ./s0
@echo off
echo == Cleaning the persistence directories and configuration settings ==
call setHome
set CONFIG_HOME=%JORAM_HOME%\samples\config
set RUN_DIR=%JORAM_HOME%\samples\run
rm %CONFIG_HOME%\a3servers.xml
rm %CONFIG_HOME%\jndi.properties
rmdir /s /q %RUN_DIR%
\ No newline at end of file
@echo off
if [%1]==[] goto no_arg
if not [%2]==[] goto too_many_args
echo == Launching the %1 client ==
call setHome
set JORAM_LIBS=%JORAM_HOME%\lib
set SAMPLE_CLASSES=%JORAM_HOME%\samples\classes\joram
set CONFIG_ENV=%JORAM_HOME%\samples\config
set CLASSPATH=%JORAM_LIBS%\jms.jar
set CLASSPATH=%CLASSPATH%;%JORAM_LIBS%\jndi.jar
set CLASSPATH=%CLASSPATH%;%JORAM_LIBS%\joram-client.jar
set CLASSPATH=%CLASSPATH%;%JORAM_LIBS%\joram-shared.jar
set CLASSPATH=%CLASSPATH%;%JORAM_LIBS%\JCup.jar
set CLASSPATH=%CLASSPATH%;%JORAM_LIBS%\log4j.jar
set CLASSPATH=%CLASSPATH%;%JORAM_LIBS%\ow_monolog.jar
set CLASSPATH=%CLASSPATH%;%SAMPLE_CLASSES%
set CLASSPATH=%CLASSPATH%;%CONFIG_ENV%