FileDocCategorySizeDatePackage
AccountManagerImpl.javaAPI DocExample1411Wed Apr 05 11:25:42 BST 2000None

AccountManagerImpl

public class AccountManagerImpl extends UnicastRemoteObject implements AccountManager

Fields Summary
Constructors Summary
public AccountManagerImpl()

Methods Summary
public AccountgetAccount(java.lang.String name)

    Registry reg = LocateRegistry.getRegistry();
    Account a = null;
    try {
      a = (Account)reg.lookup(name);
    }
    catch (Exception e) {}
    return a;
  
public booleannewAccount(Account a)

    Registry reg = LocateRegistry.getRegistry();
    System.out.print("Registering new account...");
    reg.rebind(a.getName(), a);
    System.out.println("done.");
    return true;