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
             Fix For: Java-SCA-1.1


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]

Reply via email to