FileDocCategorySizeDatePackage
Client_82a.javaAPI DocExample846Wed May 15 05:43:04 BST 2002com.titan.clients

Client_82a.java

package com.titan.clients;

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

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