class OnewayReqDepositCheque extends Thread { private int value = 0; private Account accountServer = null; public OnewayReqDepositCheque(Account accountServer, int value) { this.value = value; this.accountServer = accountServer; } //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); } System.out.println("Request for deposit of " + value +" pounds was completed whilst simulating a one-way request"); } }