12.07.2015 Views

Implementation of a Distributed Document-Based System

Implementation of a Distributed Document-Based System

Implementation of a Distributed Document-Based System

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Compiling the programTo compile the program, log into any Linux workstation and change to the source codedirectory:kira> cd cs843/projectRun the compile_pgm script to generate program and helper classes. The script shouldstart a bash shell and set the environment to use Java 1.5. It will then generate CORBA helperclasses using idlj, compile the CORBA code, then compile the RMI code. It should leave theuser at a bash shell prompt. Please check the environment to ensure that JAVA_HOME points toJava 1.5, otherwise the application will not work.kira> compile_pgmNote: DLDCorbaApp/DLDCorbaPOA.java uses unchecked or unsafe operations.Note: Recompile with -Xlint:unchecked for details.Note: DLDClient.java uses unchecked or unsafe operations.Note: Recompile with -Xlint:unchecked for details.Done with compiler scriptbash-2.05a$If the environment still isn’t correct, execute the following commands:bash-2.05a$ . ~cs843/bin/jdk.shbash-2.05a$ export CLASSPATH=$CLASSPATH:.Server Setup and Starting the ServersUse rsh or ssh in separate windows to sisko, kirk and spock. These three servers arelisted in the configuration file, CS843Project.cfg. Let sisko be server 1, kirk is server 2 andspock is server 3. It does not matter which server is which number, but for the next part <strong>of</strong> thesetup, consistency is required. The server_copy scripts are for project testing convenience.sisko> cd cs843/project (or source directory)sisko> server_copy1sisko> server_startDLDRMIServer Listening on port 50168DLDRMI server running on sisko.cs.wichita.edukirk> cd cs843/project (or source directory)kirk> server_copy2kirk> server_startInitial Naming Context:IOR:000000000000002b49444c3a6f6d672e6f72672f436f734e616d696e672f4e616d696e67436f6e746578744578743a312e30000000000001000000000000009a000102000000000e3135362e32362e31302e32333900c3f900000045afabcb00000000201f0de98a0000000100000000000000020

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!