ServiceXpress Framework :: ChrisXpress Browserless Solution
Hi,
Had a nightmare of a task yesterday to configure SX for faster access over VPN. The only solution was to do it browser less , anyone who knows and / or has used ChrissXpress will agree , that its extremely slow and tightly bound around Java 1.3.1 .
The solution was to download all of the jar files from the framework and copy them over to JAVA_HOME/lib and create a small script to launch it by clicking.
Following is the script i slapped together for achieving this task , it automatically setups the $CLASSPATH & $PROPERTIES FILE which are required for SX to run. The properties file is project specific and needs to be collected from the platform it self.
set CLASSPATH=for %%i in (*.jar) do call addpath.bat %%iecho CLASSPATH : %CLASSPATH%echo CLASSPATH : %CLASSPATH% >> SXClientLog.txtrem ————————————rem Call javarem ————————————echo Starting…java -classpath “%CLASSPATH%” -Xmx160m at.siemens.servicexpress.sxfw.capp.appbase.SxJApplet %PROPERTY_FILE% >> SXClientLog.txt 2>&1
Following is the code for addpath.bat
echo Append CLASSPATH with %1 >> SXClientLog.txtset CLASSPATH=%1;%CLASSPATH%shift:argsif “%1″==”" goto noargsecho Append CLASSPATH with %1 >> SXClientLog.txtset CLASSPATH=%1;%CLASSPATH%shiftgoto args:noargs
That’s it , just start by running the batch file on the top and you’ll have a working offline CX installation.
Advertisement

No trackbacks yet.