707172737475767778
// Write a IOR to a file so the client can obtain a reference to the Sample File sampleRef = new File("Sample.ref"); PrintWriter writer = new PrintWriter(new FileOutputStream(sampleRef)); writer.write(orb.object_to_string(obj)); writer.close(); orb.run(); } }
195196197198199200201202203204205
catch (org.omg.PortableServer.POAManagerPackage.AdapterInactive ex) { throw new RuntimeException(ex); } orb.run(); File file = new File(refFile); file.delete(); orb.destroy();
280281282283284285286287288289290
new Thread() { public void run() { // Start the thread, serving the invocations from clients. orb.run(); } }.start(); started = true;
7374757677787980818283
new Thread() { public void run() { server_orb.run(); } }.start(); // Wait for 3 seconds for the server to start. try
6869707172737475767778
new Thread() { public void run() { server_orb.run(); } }.start(); // Wait for 500 ms for the orb to start. try
4647484950515253545556
new Thread() { public void run() { // Start the thread, serving the invocations from clients. orb.run(); } }.start(); return iors; }
118119120121122123124125126127128
new Thread() { public void run() { // wait for invocations from clients orbf.run(); } }.start(); // Make pause and do a local call. Thread.sleep(1000);
414243444546474849
NameComponent path[] = namingCtx.to_name( accNum ); namingCtx.rebind(path, account); System.out.println("AccountServer ready and waiting ..."); orb.run(); } }
606162636465666768
ncRef.rebind(path, bankRef); LOG.info("Bank reference bound"); // wait for invocations from clients LOG.info("BankServer ready and waiting ..."); orb.run(); } }
697071727374757677