FileDocCategorySizeDatePackage
Client_72d.javaAPI DocExample846Wed Mar 13 03:00:12 GMT 2002com.titan.clients

Client_72d.java

package com.titan.clients;

import com.titan.test.*;
import javax.naming.*;
import javax.rmi.PortableRemoteObject;
import java.rmi.RemoteException;

public class Client_72d
{
   public static void main(String[] args) throws Exception
   {
      try
      {
         // obtain CustomerHome
         Context jndiContext = getInitialContext();
         Object obj = jndiContext.lookup("Test72HomeRemote");
         Test72HomeRemote home = (Test72HomeRemote)obj; 
         Test72Remote tester = home.create();
         String output = tester.test72d();
         System.out.println(output);
      }
      catch (Exception ex)
      {
         ex.printStackTrace();
      }
   }
   
   public static Context getInitialContext() 
      throws javax.naming.NamingException 
   {
      return new InitialContext();
   }
}