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 %%i
echo CLASSPATH : %CLASSPATH%
echo CLASSPATH : %CLASSPATH% >> SXClientLog.txt
rem   ————————————
rem   Call java
rem   ————————————
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.txt
set CLASSPATH=%1;%CLASSPATH%
shift
:args
if “%1″==”" goto noargs
echo Append CLASSPATH with %1 >> SXClientLog.txt
set CLASSPATH=%1;%CLASSPATH%
shift
goto 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
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.