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: ISSUE-71: Incorrect code in section 6.7.2 example


http://www.osoa.org/jira/browse/JAVA-71

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
Inactive hide details for Simon Nash <oasis@cjnash.com>Simon Nash <oasis@cjnash.com>


          Simon Nash <oasis@cjnash.com>

          09/15/2008 05:00 PM


To

sca-j@lists.oasis-open.org

cc


Subject

[sca-j] NEW ISSUE: Incorrect code in section 6.7.2 example

TARGET: Java Common Annotations and APIs, WD 04, section 6.7.2

DESCRIPTION: Incorrect code in section 6.7.2 example

On line 511, this use of getCallbackID() is incorrect.  This
code should obtain a RequestContext either by injection or from
the ComponentContext, then call RequestContext.getServiceReference()
to get the currently active invocation service reference, then
call getCallbackID() on that.

PROPOSAL:

Replace lines 510 through 511 by:

@Context RequestContext context;

public void receiveResult(String result) {
    Object key = context.getServiceReference().getCallbackID();




---------------------------------------------------------------------
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 


GIF image



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