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

	"@(#)README 3.1 98/09/29 SMI"

	Copyright (c) 09/29/98, by Sun Microsystems, Inc.
	All rights reserved.

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

			Agent Bean Example
			==================


-----------------------------------------------------------------------
1. Example overview
-----------------------------------------------------------------------
The current directory contains the following source files:
   * AgentMain.java:
 	- Implements a simple agent application.
	- Initializes a static framework.
	- Adds RMI and HTML adaptors to the framework.
	- Is designed to be put in a JAR file and loaded 
	  into the BeanBox.

   * TextSample.java:
	- Implements a simple m-bean.
	- Shows how to implement a read-write m-bean property.
	- Is designed to be put in a JAR file and loaded
	  into the BeanBox.
	- Contains in its constructor code to register itself 
	  with the agent in the BeanBox.


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

   cd <WORKING_DIR>

   # Set the CLASSPATH environment variable to specify
   # the root of the class distribution for the BeanBox.

   setenv CLASSPATH .:/opt/SUNWconn/jaw/examples/classes:/opt/SUNWconn/jaw/classes/jawco.jar:/opt/SUNWconn/jaw/classes/jawag.jar:/opt/SUNWconn/jaw/classes/jawcl.jar:/opt/SUNWconn/jaw/classes/jawcs.jar:/opt/SUNWconn/jaw/classes/jawtk.jar:<JDKHOME>/beans/beanbox/classes

   make


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

   # Start the BeanBox:

   java sun.beanbox.BeanBoxFrame

   # Load the JAR files into the BeanBox one at a time:
   #	a. In the BeanBox main window, from File choose Loadjar.
   #	b. In the Load from JAR File dialog box, select the JAR file
   #	   you want to load and click OK.

   # Instantiate the objects, starting with AgentMain:
   #	a. In the Toolbox window, click AgentMain, then click
   #	   in the BeanBox main window.
   #	b. Repeat for TextSample.

   # Type some text into the text field and press Enter.

   # You can view the changes by starting an m-bean browser.

