You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Jean-Sebastien Delfino (JIRA)" <tu...@ws.apache.org> on 2007/08/18 00:32:31 UTC

[jira] Resolved: (TUSCANY-1292) Defining a service within a component definition as an alternative to promoting as a composite service results in a wrong behaviour

     [ https://issues.apache.org/jira/browse/TUSCANY-1292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Sebastien Delfino resolved TUSCANY-1292.
---------------------------------------------

    Resolution: Fixed

I fixed this one earlier this week, this was caused by some of the bindings incorrectly using createSelfReference() to get a proxy to the target component. 

> Defining a service within a component definition as an alternative to promoting as a composite service results in a wrong behaviour
> -----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1292
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1292
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Core Runtime
>    Affects Versions: Java-SCA-0.90
>            Reporter: Venkatakrishnan
>             Fix For: Java-SCA-Next
>
>
> 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.

-- 
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org