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

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

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

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

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


-----------------------------------------------------------------------
1. Example overview
-----------------------------------------------------------------------
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.


-----------------------------------------------------------------------
2. Running the precompiled version
-----------------------------------------------------------------------
To run the precompiled version of the example, type the following
commands:

   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

   # Start the script nameserv provided by 
   # Java IDL Early Access:

   nameserv -ORBInitialPort 8085

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

   java examples.agentiiop.Agent

   # Start the manager:

   java examples.agentiiop.Client


-----------------------------------------------------------------------
3. 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>

   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

   javac -d . Agent.java Client.java


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

   # Start the script nameserv provided by
   # Java IDL Early Access:

   nameserv -ORBInitialPort 8085

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

   java examples.agentiiop.Agent

   # Start the manager:

   java examples.agentiiop.Client

