[
https://issues.apache.org/jira/browse/TUSCANY-1916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Simon Laws resolved TUSCANY-1916.
---------------------------------
Resolution: Fixed
Thank your Giorgio.
I've checked the patch in. I changed it slightly to use the Base64 code that is
already in databinding so I didn't need the util class here. I also added a
CallableRefererence databinding type that uses the Externalizable transformers
so that I can specify the base CallableReference type as a parameter type. I
updated the callable reference itest and the domain code to make use of this
new function
Simon
> Callable References don't work over binding-sca-axis2
> ------------------------------------------------------
>
> Key: TUSCANY-1916
> URL: https://issues.apache.org/jira/browse/TUSCANY-1916
> Project: Tuscany
> Issue Type: Bug
> Affects Versions: Java-SCA-0.90
> Environment: Linux/JDK 1.1
> Reporter: Giorgio Zoppi
> Assignee: Simon Laws
> Fix For: Java-SCA-1.1
>
> Attachments: callable-patch3.txt, Utils.java
>
>
> If you try to get a reference from a component, which resides in an another
> node, it doesn't work because it's not serialized correctly. For example:
> public class AComponentImpl implements AComponent {
> @Context
> protected ComponentContext componentContext;
> @Reference
> protected BComponent bReference;
>
> @Reference
> protected CComponent cReference;
>
>
> public String foo()
> {
>
> org.apache.tuscany.sca.core.context.CallableReferenceImpl<CComponent>
> dupref = (CallableReferenceImpl) cReference.getComponentReference();
> return dupref.getService().foo();
> }
> }
> In the current code, i get a TransformationException, because
> CallableReferenceImpl is seen as a POJO. With the alleged patch i serialized
> it to an ObjectStream, base64code that stream, and then i create an OMElment
> with only a node to send over Axis. And so it works.
>
--
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]