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 refersto an impossible situation
- From: David Booz <booz@us.ibm.com>
- To: sca-j@lists.oasis-open.org
- Date: Tue, 17 Mar 2009 09:36:01 -0400
I don't understand this issue. I've never read the word construction to imply anything about a Java constructor. I think it's meant generally to cover creation and injection of ref and properties. Until everything is injected, the instance really isn't constructed.
Dave Booz
STSM, BPM and SCA Architecture
Co-Chair OASIS SCA-Policy TC and SCA-J TC
"Distributed objects first, then world hunger"
Poughkeepsie, NY (845)-435-6093 or 8-295-6093
e-mail:booz@us.ibm.com
"Mark Combellack" ---03/17/2009 09:22:37 AM---Hi Vamsi, I have raised this new issue as Issue 143. See
From: |
"Mark Combellack" <mcombellack@avaya.com> |
To: |
"C Vamsi" <vamsic007@in.ibm.com>, <sca-j@lists.oasis-open.org> |
Date: |
03/17/2009 09:22 AM |
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
---------------------------------------------------------------------
To unsubscribe from this mail list, you must leave the OASIS TC that
generates this mail. Follow this link to all your TCs in OASIS at:
https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]