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

Remote getService() lookup with only component name fails when target has a callback

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Java-SCA-2.0
    • Java-SCA-2.0
    • None
    • All OS

    Description

      If I deploy a composite with the following component

      <component name="SCAJFrontendComponent">
      <implementation.java class="test.bindings.sca.FrontendImpl"/>

      <service name="FrontendService">
      <interface.java interface="test.bindings.sca.intf.FrontendService"/>
      <binding.sca />
      </service>

      <reference name="backendService" target="SerializationBackendComponent">
      <interface.java interface="test.bindings.sca.intf.SerializeBackendService"
      callbackInterface="test.bindings.sca.intf.SerializeCallback"/>
      <callback>
      <binding.sca />
      </callback>
      </reference>
      </component>

      and try to do a getService lookup using just the component name on a different JVM, the lookup fails saying there are multiple services in the component and I need to specify a service name.
      The check in DefaultEndpointFinder to check if the endpoint service is a callback service doesn't seem to be working in the remote case.
      I think the code in the EndpointProcessor needs to be updated to include some attribute to indicate that the service is a callback service when it's getting serialized.

      Attachments

        Activity

          People

            simonslaws Simon Laws
            kvijai Vijai Kalathur
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: