Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-1916

Callable References don't work over binding-sca-axis2

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Java-SCA-0.90
    • Java-SCA-1.1
    • None
    • None
    • Linux/JDK 1.1
    • Patch Available

    Description

      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.

      Attachments

        1. Utils.java
          2 kB
          Giorgio Zoppi
        2. callable-patch3.txt
          10 kB
          Giorgio Zoppi

        Activity

          People

            simonslaws Simon Laws
            joenx77 Giorgio Zoppi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: