Building the baseline application

The source code for the client and the server are located in the "src" section of the team's webpage. The AFS cell of the team is /afs/ece.cmu.edu/class/ece841/public_html/team4/. Please follow the following steps to build our applications.

Building Environment: J2SE SDK 1.4.1 (Please make sure that idlj and javac are in your path.)

  1. Go to the team's repository directory, /afs/ece.cmu.edu/class/ece841/public_html/team4/.
  2. Set the environment variable for CLASSPATH.
    set CLASSPATH=%CLASSPATH%;jbcl.jar
  3. Go to the directory for the server source code.
    cd src/uc_server
  4. Compile IDL file. A CampusInfo subdirectory should be automatically created under uc_server.
    idlj -fall unicommerce.idl 
  5. Compile the server code.
    javac *.java CampusInfo\*.java -d ../../classes
  6. Go to the directory for the client source code.
    cd ../uc_client
  7. Compile IDL file. A CampusInfo subdirectory should be automatically created under uc_client.
    idlj -fall unicommerce.idl 
  8. Compile the client code.
    javac *.java CampusInfo\*.java -d ../../classes

Running the baseline application

The classes for the client and the server are located in the "classes" section of the team's webpage. The AFS cell of the team is /afs/ece.cmu.edu/class/ece841/public_html/team4/. Please follow the following steps to run our applications.

Running Environment: J2SE SDK 1.4.1 (Please make sure that orbd and java are in your path.)

  1. Set the environment variable for CLASSPATH.
    set CLASSPATH=%CLASSPATH%;jbcl.jar
  2. Launch orbd
    orbd -ORBInitialHost localhost -ORBInitialPort 1500
  3. Go to the directory for the classes.
  4. Run the unicommerce server
    java Server.UniServer -ORBInitialHost <server host name> -ORBInitialPort 1500
  5. When the GUI pops up, you may configure which SQL Server you're using. For example, msepc13.sp.cs.cmu.edu.
  6. Run the unicommerce client
    java Client.UniClient -ORBInitialHost <server host name> -ORBInitialPort 1500
  7. When the GUI pops up,  you may use the GUI to interact with the system. Please follow the test case document to walk through the system.

Functionalities

The  system currently supported the following functionalities.

  1. New users can register a new account with the Unicommerce system.
  2. User can login to the Unicommerce system as long as he has an account.
  3. User can logout of the Unicommerce system.
  4. Once user logs in, he can freely update his own account information, including password, name, and email address.
  5. User can sell an item once he logs in.
  6. User can buy an item once he logs in.
  7. User can cancel a sell operation on an item once he logs in. 
  8. User can retrieve his own transaction history once he logs in.
  9. User can browse all the available items in the database. (No need to log in.)
  10. User can search for a specific item in the database. (No need to log in.)