OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

sca-j message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: [sca-j] NEW ISSUE: Guidelines for dealing with cyclic references refers to an impossible situation


Hi Vamsi,

I have raised this new issue as Issue 143. See
http://www.osoa.org/jira/browse/JAVA-143

Thanks,

Mark

> -----Original Message-----
> From: C Vamsi [mailto:vamsic007@in.ibm.com]
> Sent: 17 March 2009 10:25
> To: sca-j@lists.oasis-open.org
> Subject: [sca-j] NEW ISSUE: Guidelines for dealing with cyclic
references
> refers to an impossible situation
> 
> TARGET: Java C&I Spec -- sca-javaci-1.1-spec-wd04_proposal2.doc
> 
> DESCRIPTION:
> Section 5: Implementation Instance Creation
> Lines 272-276:
> Cyclic references between components MUST be handled by the SCA
runtime in
> one of two ways:
> *     If any reference in the cycle is optional, then the container
can
> inject a null value during construction, followed by injection of a
> reference to the target before invoking any service.
> *     The container can inject a proxy to the target service;
invocation
> of
> methods on the proxy can result in a ServiceUnavailableException
> 
> The first of the two ways in the above text talks about the situation
> where
> a reference which is a constructor parameter bing optional.  This
should
> not arise since from CAA spec, "For a @Reference annotation applied to
a
> constructor parameter, the required attribute MUST have the value
true.
> [JCA90019]".
> 
> See [1] for a discussion on this topic.
> 
> PROPOSAL:
> Outline of the proposal suggested by SimonN in [1] is as follows:
> 1. Remove lines 275-276.
> 2. Change the paragraph at line 273 to read, "If any reference in the
> cycle
> is not a constructor parameter reference, the container may order the
> creation of implementation instances and reference injections so that
this
> reference is injected last in the cycle of references."
> 
> ++Vamsi
> Apache Tuscany Committer  http://tuscany.apache.org
> Apache Geronimo Committer and Member of PMC
http://geronimo.apache.org
> 
> 
> [1] http://lists.oasis-open.org/archives/sca-j/200902/msg00243.html


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]