class AsynchronousReqDepositCheque extends Thread { private int value = 0; private Account accountServer = null; private AccountClient accountClient=null; public AsynchronousReqDepositCheque(Account accountServer, int value, AccountClient accountClient) { this.value = value; this.accountServer = accountServer; this.accountClient = accountClient; } //call remote method and then die public void run() { try { accountServer.deposit(value); } catch(Exception ex) { System.out.println("Unexpected CORBA exception: " + ex); ex.printStackTrace(System.out); } accountClient.callBack(); } }