FileDocCategorySizeDatePackage
DropDB.javaAPI DocExample1292Mon Sep 30 09:41:56 BST 2002com.titan.clients

DropDB

public class DropDB extends Object

Fields Summary
Constructors Summary
Methods Summary
public static javax.naming.ContextgetInitialContext()

      return new InitialContext ();
   
public static voidmain(java.lang.String[] args)

      try
      {
         Context jndiContext = getInitialContext();
         
         System.out.println("Looking up home interfaces..");
         Object ref = jndiContext.lookup ("ProcessPaymentHomeRemote");
         
         ProcessPaymentHomeRemote procpayhome = (ProcessPaymentHomeRemote)
         PortableRemoteObject.narrow (ref,ProcessPaymentHomeRemote.class);
         
         ProcessPaymentRemote procpay = procpayhome.create();
         System.out.println ("Dropping database table...");
         procpay.dropDbTable ();
      }
      catch(java.rmi.RemoteException re)
      {
         re.printStackTrace ();
      }
      catch(Throwable t)
      {
         t.printStackTrace ();
      }