Issue 5870: multiple lifetime policies declaration issue (components-ftf) Source: INRIA (Nawel Sabri, nobody) Nature: Uncategorized Issue Severity: Summary: In section 4.2.5 of the CCM spec formal/02-06-65, it is said that "Servant lifetime policies may be defined for each segment within a component", but there is no way to do it. Lifetime policy is declared in the CCD descriptor of the component, as an attribute of the "servant" XML element, and is implicitly applied on all the segments of the component(when it is segmented) ! Suggested resolution: to leave the servant element as it is, expressing a DEFAULT lifetime policy, and to add the same servant element as an optional child of the segment element. This will specify the lifetime policy of the segment and override the defautl one. DTD has to be changed as follows : <!ELEMENT segment ( segmentmember+ , containermanagedpersistence? , extension* > <!ATTLIST segment name CDATA #REQUIRED segmenttag CDATA #REQUIRED > becomes: <!ELEMENT segment ( segmentmember+ , servant? , containermanagedpersistence? , extension* > <!ATTLIST segment name CDATA #REQUIRED segmenttag CDATA #REQUIRED > Resolution: Revised Text: Actions taken: February 25, 2003: received issue Discussion: End of Annotations:===== Date: Tue, 25 Feb 2003 10:33:03 +0100 From: Nawel Sabri Organization: INRIA User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2 X-Accept-Language: en-us To: issues@omg.org Subject: multiple lifetime policies declaration issue In section 4.2.5 of the CCM spec formal/02-06-65, it is said that "Servant lifetime policies may be defined for each segment within a component", but there is no way to do it. Lifetime policy is declared in the CCD descriptor of the component, as an attribute of the "servant" XML element, and is implicitly applied on all the segments of the component(when it is segmented) ! Suggested resolution: to leave the servant element as it is, expressing a DEFAULT lifetime policy, and to add the same servant element as an optional child of the segment element. This will specify the lifetime policy of the segment and override the defautl one. DTD has to be changed as follows : becomes: Nawel.