I'm trying to bind my CORBA service to multiple NameServices. The code is as follows (simplified):
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 libraries accept the corbaloc URI, but the service is only bound to the 1337 port.
EDIT: I know that manually binding to multiple NameServices should work, but the corbaloc URI is supposed to do the job.
Any CORBA expert here?
Thank you!