| Summary: | Orb returns reference to myself when trying to connect to mate | ||
|---|---|---|---|
| Product: | JacORB | Reporter: | john.seltzer |
| Component: | ORB | Assignee: | Gerald Brose <gerald.brose> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | blocker | ||
| Priority: | P1 | ||
| Version: | 2.0 beta3 | ||
| Hardware: | Other | ||
| OS: | AIX | ||
|
Description
john.seltzer
2003-11-28 21:26:51 UTC
on 2/10/2003, in bug 313, the following was proposed: -------------------------------------------------------------------- "The problems you are getting are clearly realted to how JacORB determines whether an object is local or not. Essentially it assumes an object is local if both the server name and poa name match. Reading the POA specifications it is really up to an application designer to ensure that all POA names are unique (i.e. you shouldn't really be using the same POA name in different server). Can you try giving each server a different server name (set the "jacorb.implname" property). I think if you do this then JacORB should be able to handle duplicate POA names." -------------------------------------------------------------------- I've tried this. Although it sort of works, it completely negates the persistency of this object. If I make jacorb.implname be, for instance, the name of the server, then the ior created for this object will have that implname in it's ior. If I then move this service to another machine, I CANNOT connect to this object again with the old ior, even though everything else about the ior remains the same. I'd have to make remote clients get updated with the new ior whenever the service gets moved to another machine. A completely impractical idea. The above statement says that: "Essentially it assumes an object is local if both the server name and poa name match." I claim that it can only be local if the host and port also match(at the least). This behaviour is by design and as per the spec. John - If you migrated a persistent server to another machine you would not be able to connect using the old IOR even if the object keys remained the same because the addressing info in the old IOR (host and port etc.) would point to the old machine, not the new one. The use case you are describing is best addressed by the use of an Implementation Repository. See chapter 6 in http://www.jacorb.org/releases/2.0beta1/ProgrammingGuide.pdf. *** This bug has been marked as a duplicate of 313 *** |