Given are two identical programs running on different hosts which offer a
servant (bound to a persistent POA with "IdAssignmentPolicyValue.USER_ID"
and "LifespanPolicyValue.PERSISTENT") and which connect to the peer servant on
the foreign host.
The sequence for binding the servant is like this:
(before, "jacorb.implname" has been set to "OB" and the POAs name
is set to "POA")
The sequence for getting the remote object-reference is
String objName = "corbaloc:iiop:"+hostName+":"+hostIpPort+
org.omg.CORBA.Object obj = orb.string_to_object(objName);
remotePeer = MyServantHelper.narrow(obj);
The error is, that the "remotePeer"-object is in fact the local servant!
The ORB does not even try to connect to the remote host, even when servant-
functions get called.
A workaround is to rename e.g. "OB" to "OB_<host-name>" so that the object's
name is even more different as it was.
The error applies to JacORB 2.0 beta1, too and can be reproduced on SUN Solaris
*** Bug 425 has been marked as a duplicate of this bug. ***
*** Bug 473 has been marked as a duplicate of this bug. ***
applied patch from prismtech
*** Bug 503 has been marked as a duplicate of this bug. ***