PreviousTOCNext

Appendix A

The attached zip file contains all the souce code, class files, and a readme.txt file. In addition the main source files are included below.

This package is composed of the following source files:


MGSInterface.java
defines the MGS interface

MGSMessage.java
The MGS message definition and methods

MGSCommand.java
MGS command to force cycling of the MGS log file - untested

MGSService.java
The actual MGS Service running as a java application

Profile.java
Contains application profile information which is used to help identify the message

MGS_test.java
A client which will access the remote method logThis()


To Run this system you must:

  1. Unzip the file into an approriate classes directory


  2. Optionally, if you modify any of the MGS base files you must regenerate the stub and skeleton files

    rmic MGSService

  3. Start the RMI Registry

    start rmiregistry (Win95/NT)

  4. Copy the class files to a location in the CLASSPATH. This includes the MGSService_stub.class and MGSService_skel.class files output as a results of running rmic.


  5. Start the MGS Service with 2 parameters, the first is the directory where the MGS logs should be written and the second is how often the service should check for new messages

    start java MGSServer e:\javasrc\mgslog\ 14 (Win95/NT)

  6. Run the client

    java MGS_test (Win95/NT)

If you have any Questions/Suggestions/Comments please e-mail me at: twgerber@notes.up.com - Tom Gerber

PreviousTOCNext

Return to Gerber Family Home Page
directNIC Search
Hosted by directNIC.com