# INTERSTAR TECHNOLOGIES INC.
# XmSite, sample for for XMedius Java Api Module (XmediusJavaApi.jar)
# 2004


A) The files

   The sample contains the following files:

   - XmBase.java: Java source code (located in directory ../xmuser)
   - XmConstants.java: Java source code (located in directory ../xmuser)
   - XmNewSite.java: Jave source code

   - BUILD.bat: command file for building the sample
   - XMNEWSITE.bat: command file for using the sample

   - readme.txt: this file


B) Build the sample

   1) Install the XMedius Java Api Module if not already done;
   2) At the command prompt, type BUILD from the sample's directory.  The
      BUILD.bat command file will compile the Java source code files and
      package then inside the XmNewSite.jar file.


C) Use the sample

   1) To run the sample, you need the following files

   - XMNEWSITE.bat
   - XmNewSite.jar (must be in the same directory as XMNEWSITE.bat or update
     the XMJAVAAPI_CLASSPATH value to the location of the jar files)

   2) Type XMNEWSITE -h at the command line to see the operations available.


D) Usage

   1) Create a new site

      XmNewSite {LoginInfo} "new_site_name"


   Where {LoginInfo} is: -LoginName "system_admin_name" -LoginPwd "pwd" -LoginServers "server1[,server2]"

   The login information, as well as all other command line arguments, can be:

   - entered each time at the commande line, and/or
   - hardcoded in the XMNEWSITE.bat file, and/or
   - hardcoded in the XmNewSite.jar file by modifying the
     XmConstants.LOGIN_STRING before building the jar file.
