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

	"@(#)README 3.5 99/03/24 SMI"

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

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

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


-----------------------------------------------------------------------
1. Example overview
-----------------------------------------------------------------------
This example shows an agent and an m-bean designed to be loaded into
the BeanBox.

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 the example
-----------------------------------------------------------------------
To build the agentbean 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:

   # Running the example on a Solaris platform:
   setenv CLASSPATH ${CLASSPATH}:<BDK_HOME>/beanbox/classes:<BDK_HOME>/beanbox/infobus.jar
-or-
   # Running the example on a Windows platform:
   set CLASSPATH=%CLASSPATH%;<BDK_HOME>\beanbox\classes:<BDK_HOME>\beanbox\infobus.jar

   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.

