hi,
 I have download the samples and run the Calculator sample success.
 But when I add a composite service on the composite file,how can i get the 
service by the composite service name.
 
 For the calculator example,how I can get the service by the name 
"CalculatorService"?
 
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0";  name="Calculator">

    <service name="CalculatorService" promote="CalculatorServiceComponent">
        <interface.java interface="calculator.CalculatorService"/>
    </service>
 
    <component name="CalculatorServiceComponent">
        <implementation.java class="calculator.CalculatorServiceImpl"/>
        <reference name="addService" target="AddServiceComponent" />
        <reference name="subtractService" target="SubtractServiceComponent" />
        <reference name="multiplyService" target="MultiplyServiceComponent" />
        <reference name="divideService" target="DivideServiceComponent" />
    </component>
    <component name="AddServiceComponent">
        <implementation.java class="calculator.AddServiceImpl"/>
    </component>
    <component name="SubtractServiceComponent">
        <implementation.java class="calculator.SubtractServiceImpl"/>
    </component>
    <component name="MultiplyServiceComponent">
        <implementation.java class="calculator.MultiplyServiceImpl"/>
    </component>
    <component name="DivideServiceComponent">
        <implementation.java class="calculator.DivideServiceImpl"/>
    </component>
</composite>


Thanks,
  Tony

Reply via email to