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

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

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

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

			Tutorial Example
			================


-----------------------------------------------------------------------
1. Example overview
-----------------------------------------------------------------------
This simple example shows how to develop an m-bean, an agent, a c-bean
and a manager.

The current directory contains the following source files:

   * SimpleAgent.java:
 	- Implements a simple agent application.
	- Initializes the framework.
	- Adds RMI and HTTP adaptors to the framework.
	
   * SimpleClient.java:
	- Implements a simple manager.	
	- Sets up communication using the RMI adaptor client 
	  to connect to the agent.
	- Instantiates an m-bean and registers it with the 
	  framework.
	- Gets a handle on the m-bean from the remote agent.
	- Gets and sets m-bean properties through a c-bean
          by using a handle on the m-bean.

   * SimpleBean.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 tutorial example, copy the example source files to your 
working directory and type the following commands:

   cd <WORKING_DIR>

   javac -d . SimpleBean.java

   mogen SimpleBean

   javac -d . *.java

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

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

   java SimpleAgent

   # Start the manager:

   java SimpleClient
