应用程序客户机始终尝试连接到 localhost:3700。问题在于在调用客户机代码之前,需要读取多个系统属性。
将以下各项设置为系统属性(JAVA_CMD 中的 -D)。请勿在应用程序客户机代码中设置它们:
org.omg.CORBA.ORBInitialHost = server_instance_host org.omg.CORBA.ORBInitialPort = server_instance_port