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 ("Creating database table...");
procpay.makeDbTable();
}
catch(java.rmi.RemoteException re)
{
re.printStackTrace ();
}
catch(Throwable t)
{
t.printStackTrace ();
}