Setting up a Data Server for use with the Distributed Computing for JAS

This example uses LCD Data samples. 

The data is available at SLAC in /nfs/slac/g/lcd/public_data/mar2001/paqqS/*.sio. (Mark -- you will need to ssh to bbr-work1.slac.stanford.edu, cd to the above directory, and then FTP the files back to CERN, since they are not currently directly accessible via FTP. I have asked for that to be rectified but I don't know when it will happen). Copy one of the above files to each node you want to run a data server on, and save it in c:\data (for example)

Make sure your have the lcd extensions installed in JAS (if you installed from the CD you have this already, otehr wise use View, Plugin Manager). 

Create a server.config file which contains the following:

Protocol jas.jds.RMIWebServer
Protocol jas.jds.RMIProtocol
DataServer jasext.test.TestServer
DataServer hep.lcd.io.jas.sio.SIOEventServer "SIO Files" c:\data
Protocol protocol.CatalogProtocol <catalog-host>

Set your CLASSPATH as:

set CLASSPATH as %CSCHOME%\CSC.jar;%JASHOME%\lib\jas.jar;%JASHOME%\lib\hep.jar;%JASHOME%\lib\collections.jar;%JASHOME%\extensions\TestServer.jar;%JASHOME%\extensions\lcd.jar

And now issue the command:

java jas.jds.JDSMain server.config

The server should start and register itself with the catalog server.