namingCtx.rebind(name, smsGatewayRef);
System.out.println("CORBA server running - press Enter to shutdown");
System.in.read();
orb.shutdown(true);
orb.destroy();
} finally {
// Make sure that the tnameserv process gets destroyed and its
// listener port is released