The Wildfly (JBoss) Solution Shell Scripts
jclean.sh
rm xholidays
rm /tmp/holidaysIX /tmp/holidaysIX.idx
rm /vagrant/cobol/webservices/xholidays/xholidays
echo 'rm jcoberrplus'
rm /tmp/jcoberrplus
/usr/bin/pkill -f firefox
jbuild.sh
#/bin/bash
echo 'starting shellscript'
echo 'set -e'
set -e
echo 'run cit setup script'
export DEFAULT_CITDIR=/opt/cobol-it4-64
export COBOLITDIR=$DEFAULT_CITDIR
export PATH=$COBOLITDIR/bin:${PATH}
export LD_LIBRARY_PATH="$COBOLITDIR/lib:${LD_LIBRARY_PATH:=}"
export DYLD_LIBRARY_PATH="$COBOLITDIR/lib:${DYLD_LIBRARY_PATH:=}"
export SHLIB_PATH="$COBOLITDIR/lib:${SHLIB_PATH:=}"
export LIBPATH="$COBOLITDIR/lib:${LIBPATH:=}"
export COB="COBOL-IT"
echo COBOL-IT Environement set to $COBOLITDIR
echo 'building service ...'
cobc -x -g -ftraceall -o xholidays xholidays.cbl holidays.cbl
cp xholidays /vagrant/cobol/webservices/xholidays/
echo 'all done'
run.sh
#!/bin/bash
export COBOLIT_LICENSE=/opt/cobol-it4-64/citlicense.xml
COBOLITDIR=/opt/cobol-it4-64
PATH=$COBOLITDIR/bin:${PATH}
LD_LIBRARY_PATH="$COBOLITDIR/lib:${LD_LIBRARY_PATH:=}"
DYLD_LIBRARY_PATH="$COBOLITDIR/lib:${DYLD_LIBRARY_PATH:=}"
SHLIB_PATH="$COBOLITDIR/lib:${SHLIB_PATH:=}"
LIBPATH="$COBOLITDIR/lib:${LIBPATH:=}"
COB="COBOL-IT"
COB_ERROR_FILE=/tmp/jcoberrplus
export COB_FILE_PATH=/tmp/
export COB_FILE_TRACE=Y
export COB COBOLITDIR LD_LIBRARY_PATH PATH DYLD_LIBRARY_PATH SHLIB_PATH LIBPATH
COB_ERROR_FILE
./xholidays
jallwithcurl.sh
#/bin/bash
curl -X POST -H "Content-Type: text/plain" --no-buffer -o /tmp/jcurlpost --data-urlencode @/tmp/poststring http://localhost:8080/spring-resteasy-v2/xprogram
curl -X POST -H "Content-Type: text/plain" --no-buffer -o /tmp/jcurlget --data-urlencode @/tmp/getstring http://localhost:8080/spring-resteasy-v2/xprogram
curl -X POST -H "Content-Type: text/plain" --no-buffer -o /tmp/jcurlput --data-urlencode @/tmp/putstring http://localhost:8080/spring-resteasy-v2/xprogram
curl -X POST -H "Content-Type: text/plain" --no-buffer -o /tmp/jcurldelete --data-urlencode @/tmp/deletestring http://localhost:8080/spring-resteasy-v2/xprogram
curl -X POST -H "Content-Type: text/plain" --no-buffer -o /tmp/jcurlget2 --data-urlencode @/tmp/getstring http://localhost:8080/spring-resteasy-v2/xprogram
jpost.sh
#/bin/bash
echo 'starting firefox...'
firefox ./jhtml/jpost.html
jpost.html
Message:<br>
<textarea rows="20" cols="90" maxlength="1000" name="msg" form="myForm">
</textarea>
<br>
<form action="http://localhost:8080/spring-resteasy-v2/xprogram" target="result2" method="post" id="myForm" accept-charset="ISO-8859-1">
<input type="submit" value="POST">
</form>
<p>Result:</p>
<iframe name="result2" style="height:450px;width:643px;"></iframe>
jget.sh
#/bin/bash
echo 'starting firefox...'
firefox ./jhtml/jget.html
jget.html
Message:<br>
<textarea rows="20" cols="90" maxlength="1000" name="msg" form="myForm">
</textarea>
<br>
<form action="http://localhost:8080/spring-resteasy-v2/xprogram" target="result2" method="post" id="myForm" accept-charset="ISO-8859-1">
<input type="submit" value="GET">
</form>
<p>Result:</p>
<iframe name="result2" style="height:450px;width:643px;"></iframe>
jput.sh
#/bin/bash
echo 'starting firefox...'
firefox ./jhtml/jput.html
jput.html
Message:<br>
<textarea rows="20" cols="90" maxlength="1000" name="msg" form="myForm">
</textarea>
<br>
<form action="http://localhost:8080/spring-resteasy-v2/xprogram" target="result2" method="post" id="myForm" accept-charset="ISO-8859-1">
<input type="submit" value="PUT">
</form>
<p>Result:</p>
<iframe name="result2" style="height:450px;width:643px;"></iframe>
jdelete.sh
#/bin/bash
echo 'starting firefox...'
firefox ./jhtml/jdelete.html
jdelete.html
Message:<br>
<textarea rows="20" cols="90" maxlength="1000" name="msg" form="myForm">
</textarea>
<br>
<form action="http://localhost:8080/spring-resteasy-v2/xprogram"
target="result2" method="post" id="myForm" accept-charset="ISO-8859-1">
<input type="submit" value="DELETE">
</form>
<p>Result:</p>
<iframe name="result2" style="height:450px;width:643px;"></iframe>