0
我試圖將我的CORBA服務綁定到多個NameServices。 代碼如下(簡化):將對象綁定到多個NameServices
org.omg.CORBA.Object objRef = orb.string_to_object("corbaloc::127.0.0.1:1337,:127.0.0.1:1338/NameService");
NamingContextExt ctx = NamingContextExtHelper.narrow(objRef);
NameComponent path[] = { new NameComponent("toto", "") };
ctx.rebind(path, new MyObject());
的VisiBroker 8.5庫接受corbaloc URI,但服務僅綁定到1337端口。
編輯:我知道,手動綁定到多個NameServices應該工作,但corbaloc URI應該做的工作。
任何CORBA專家在這裏?
謝謝!