class DefSynchronousReqDepositCheque extends Thread { private int value = 0; private Account accountServer = null; public DefSynchronousReqDepositCheque(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); } } }