-----------------------------------------------------------------------

	"@(#)README 3.4 99/03/23 SMI"

	Copyright (c) 03/23/99, by Sun Microsystems, Inc.
	All rights reserved.

-----------------------------------------------------------------------

			IIOP Agent Example
			==================


-----------------------------------------------------------------------
1. Example overview
-----------------------------------------------------------------------
This example shows how to build an agent and a manager application using 
the IIOP adaptor. 

The current directory contains the following source files:
   * Agent.java:
        - Implements a basic agent application.
        - Initializes the framework.
        - Adds the IIOP adaptor server to the framework.

   * Client.java:
        - Implements a simple manager.
        - Sets up communication using a specified adaptor client
          to connect to the agent using IIOP.
        - Creates an instance of the Simple m-bean in the remote agent.
        - Gets a handle on the Simple m-bean from the remote agent.
        - Gets and sets m-bean properties through a c-bean
          by using a handle on the Simple m-bean.

   * Simple.java:
        - Implements a simple m-bean.
        - Contains a read-write m-bean property and a read-only 
          m-bean property.
        - Implements an action.


-----------------------------------------------------------------------
2. Building and running the example
-----------------------------------------------------------------------
To build the agentiiop example, copy the example source files to your
working directory and type the following commands:

   cd <WORKING_DIR>

   javac -d . Simple.java

   mogen Simple

   javac -d . *.java


To run the version of the example you have just built, type the 
following commands:

   # Start the script tnameserv provided by jdk 1.2:

   tnameserv -ORBInitialPort 8085

   # Make sure that no agents are already running 
   # and start the agent:

   java Agent

   # Start the manager:

   java Client

