Bug 118

Summary: CORBA::Policy objects are locality constrained?
Product: TAO Reporter: Ossama Othman <ossama.othman>
Component: ORBAssignee: Irfan Pyarali <irfan>
Status: RESOLVED FIXED    
Severity: trivial    
Priority: P2    
Version: 1.0   
Hardware: All   
OS: All   
Bug Depends on: 465    
Bug Blocks: 621    

Description Ossama Othman 1999-07-26 17:09:16 CDT
According to Vinoski and Henning the CORBA::Policy objects are also locality
constrained. Could not find a references in the spec.
Comment 1 Carlos O'Ryan 1999-07-26 22:28:59 CDT
This point is under discussion in the OMG, until a final resolution is achieved
TAO supports both collocated and remote Policy objects.  This choice must be
made at compile time.
Comment 2 Ossama Othman 1999-08-03 07:48:59 CDT
Now that TAO 1.0 is out, let's revisit these bugs.
Comment 3 Carlos O'Ryan 1999-08-06 23:17:59 CDT
Irfan understands the issues here, my latest take on the CORBA 2.3 spec is that
Policy objects are not locality constrained unless explicitly stated. The spec
makes no mention in that respect when defining the CORBA::Policy class.
Comment 4 Irfan Pyarali 1999-09-09 17:33:59 CDT
With the new memory and upcall management semantics provided by the POA, we
need to look at the Policy classes again.  We may need a class that is locality
constrained but still registers with the POA (Local_ServantBase is locality
constrained and does not register with the POA).

In addition, we also need to look closely at all the other classes that inherit
from the Local_ServantBase. This includes Current, IOR_Manipulation,
Interceptor, PolicyManager, DynAny, and POA classes.
Comment 5 Irfan Pyarali 1999-09-10 16:34:59 CDT
POA_CORBA::Policy now inherit from
TAO_Locality_Constrained_ServantBase instead of TAO_Local_ServantBase
when TAO_HAS_LOCALITY_CONSTRAINT_POLICIES is turned on.  This will
give us the locality constrained policies, while still giving the
semantics of registering with the POA.

However, the collocated stubs of most policies still use direct access
to the servant.  Therefore, if absolutely normal servant behavior is
desired, these stubs need to be changed to use the through POA policy.
Comment 6 Chris Cleeland 2001-01-15 14:52:43 CST
Consider looking at other ORB implementations to see what they do.  Also, look
at the CORBA 2.4 specification.
Comment 7 Ossama Othman 2001-02-03 23:23:10 CST
I asked Michi Henning about CORBA::Policy objects while I was at COOTS 2001.  
He said that CORBA::Policy objects are *not* locality constrained unless 
explicitly marked as such.

Can we mark this bug as fixed?
Comment 8 Carlos O'Ryan 2001-02-08 01:24:50 CST
I'm marking this bug as fixed.  The situation with the spec is clear:
- CORBA::Policy is a regular interface (i.e. can be global).
- Most Policies are local (if not all).

the code in both cases matches the requirements.