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

Defining a service within a component definition as an alternative to promoting as a composite service results in a wrong behaviour

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Java-SCA-0.90
    • Java-SCA-1.0
    • SCA Java Runtime
    • None

    Description

      The JSON-RPC sample (https://svn.apache.org/repos/asf/incubator/tuscany/java/sca/samples/helloworld-jsonrpc/) had the following composite :

      composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
      targetNamespace="http://sample"
      xmlns:sample="http://sample"
      name="helloworldjsonrpc">

      <component name="HelloWorldJSONServiceComponent">
      <service name="HelloWorldService" >
      <interface.java interface="helloworldjsonrpc.HelloWorldService"/>
      <binding.jsonrpc/>
      </service>
      <implementation.java class="helloworldjsonrpc.HelloWorldServiceImpl"/>
      </component>
      </composite>

      With this composite, when the Helloworld service is invoked this ends up calling the JSONRPCBindingInvoker.invoke method instead of the component implementation. When I moved the service out to the composite level (as composite service) the behaviour is correct and the component implementation gets invoked.

      Attachments

        Activity

          People

            Unassigned Unassigned
            svkrish S Venkatakrishnan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: