Welcome to the 60East Technologies, Inc Request / Response Java sample.

Prerequisites
-------------

    Before running this application, this application assumes that you have
        the following software installed:

            - AMPS - available for download from the 60East Technologies
                website - http://www.crankuptheamps.com 
            - JDK 1.6 or greater 
            - Apache Ant

Before Running the Demos
------------------------

    NOTE: While it is not required, it is recommended to use three windows to
        run this demo and to be able to see the interractions of AMPS with
        the clients.  One window for AMPS, one window for the publisher and
        one window for the subscriber.  Doing this will give you a better
        idea of the data flow to and from each of the clients.

    o Build the project.  From the base directory of the sample application
        type:

            ant 

        to build the java code provided with this project.
    o Start AMPS.  From the 'amps' directory in the 'sample_code' project,
        type:

            <AMPS_ROOT>/bin/ampServer ./config.xml

        where <AMPS_ROOT> points to the location where you have installed
        AMPS.  The config.xml file is located in the root of the sample you
        are running.


Demo 01_simple_request_response
-------------------------------
    o This sample is a simple request response heartbeat monitoring system
        that implements the '<-' and '->' tokens for a heartbeat request and
        response between a single monitor and a single agent.  There is no
        error checking, and if an agent goes down, there is no tracking.
    o With AMPS running (see above) use the following steps to run the Simple
        Request Response demo.
    o Start the Subscriber.  In the window for your subsceriber, 'cd' to the
        'sample_code/01_simple_request_response' directory and type: 

            ./start_sub.sh

        You should see the message 'Starting Subscriber' appear.  At this
        point the Subscriber is waiting for messages from AMPS.
    o Start the Publisher.  In the window for your Publisher, 'cd' to the
        'sample_code/01_simple_request_response' directory and type:

            ./start_pub.sh

        At this point, the Publisher will start to publish messages which
        match the Subscriber's subscription.  The Subscriber will print out
        those messages, and then send a response to the Publisher.

