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

Jean-Sebastien Delfino resolved TUSCANY-1560.
---------------------------------------------

    Resolution: Fixed

This now works as described in the spec:
- if you have one service on your component you can target it with 
"componentName"
- if you have multiple services on your component you need to write 
"componentName/serviceName"

I just tested this and I'm getting correct error messages now:
More than one service is declared on component CalculatorServiceComponent. 
Service name is required to get the service.

> A component with multiple services does not work.
> -------------------------------------------------
>
>                 Key: TUSCANY-1560
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1560
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Core Runtime
>    Affects Versions: Java-SCA-Next
>         Environment: windows
>            Reporter: Zhenghui Lee
>            Assignee: Raymond Feng
>            Priority: Critical
>             Fix For: Java-SCA-0.99
>
>
>   In code org.apache.tuscany.sca.core.component.ComponentContextImpl, at line 
> 130 :
>       if (regularServices.size() != 1) {
>             throw new ServiceRuntimeException("The component doesn't have 
> exactly one service");
>         }
>   multiple services per component will be failed by above checking.

-- 
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