NamingContextExt ncRef = NamingContextExtHelper.narrow(objRef);
String name = "test.my_context/Echo.Object";
NameComponent path [] = ncRef.to_name(name);
for (int i = 0; i < path.length; i++) {
System.out.println(i + ": " + path[i].id + "." + path[i].kind);
}
Echo h = EchoHelper.narrow(ncRef.resolve(path));
System.out.println("This is a Java Client.");
文章来源于领测软件测试网 https://www.ltesting.net/