package demo.trace;

import org.omg.CORBA.ORB;
import org.omg.CosNaming.*;
/**
 * Client.java
 *
 *
 * Created: Mon Jul 24 14:58:02 2000
 *
 * @author Nicolas Noffke
 * $Id: Client.java,v 1.1 2000/07/25 14:03:13 noffke Exp $
 */

public class Client {
    public static void main(String[] args) {
        try
        {
            ORB orb = ORB.init(args, null);

            NamingContextExt nc = NamingContextExtHelper.narrow
                (orb.resolve_initial_references("NameService"));

	    org.omg.CORBA.Object o = nc.resolve( nc.to_name("relay_server.trace_demo") );
            FooRelayServer server = FooRelayServerHelper.narrow( o );

            System.out.println("Client will call relay server");
            server.anotherOperation("Hello relay server");
        }
        catch (Exception e)
        {
            e.printStackTrace();
        }
    }
    
} // Client
