[
https://issues.apache.org/jira/browse/TUSCANY-824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12510391
]
Scott Kurz commented on TUSCANY-824:
------------------------------------
I found a problem in this area when I run with my "promote DataBinding to
operation level patch".. not sure if it's useful to tack onto this JIRA or not
but here goes:
I'm not sure to what degree there is a problem with Tuscany here.
SOAFP introduced the promotion of input/output/fault DBs to operation level.
This code in Output2OutputTransformer.transform() does:
} else if (sourceWrapped && (!targetWrapped)) {
.....
targetWrapperHandler =
getWrapperHandler(getDataBinding(targetOp), false);
if (targetWrapperHandler != null) {
ElementInfo wrapperElement =
sourceOp.getWrapper().getInputWrapperElement();
// Object targetWrapper =
// targetWrapperHandler.create(wrapperElement, context);
DataType<XMLType> targetWrapperType = new
DataTypeImpl<XMLType>(targetType.getLogical()
.getDataBinding(), Object.class, new
XMLType(wrapperElement));
Object targetWrapper = mediator.mediate(sourceWrapper,
sourceType.getLogical(),
targetWrapperType,
context.getMetadata());
So we use operation DB to get targetWrapperHandler. But then we do the
mediation with the databinding of the output type:
targetType.getLogical().getDataBinding()
This doesn't allow a case where we have SDO DB at the operation level because
of an SDO as an input part, but we have a primitive as the output which would
have default DB.
I'm not sure if this problem exists without my "DB promotion" patch... I'd
guess it does since I'd expect to be able to put SDO DataBinding annotation on
the operation even with a primitive output type.. but I might not understand
the rules of the DataBinding annotation. Given this.. should this be a
separate JIRA?
> DataBinding: Is it a concern of Programming Model vs. Assembly?
> ---------------------------------------------------------------
>
> Key: TUSCANY-824
> URL: https://issues.apache.org/jira/browse/TUSCANY-824
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Core Runtime
> Affects Versions: Java-SCA-M2
> Reporter: ant elder
> Assignee: Raymond Feng
> Priority: Critical
> Fix For: Java-SCA-Next
>
> Attachments: skurz.824.v1.patch
>
>
> There have been some question about the DataBinding framework and if it
> should be a concern of the Programming Model vs. Assembly?
> See: http://www.mail-archive.com/[email protected]/msg08679.html
> and a follow up mention in:
> http://www.mail-archive.com/[email protected]/msg09363.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]