Hi, i have some questiona about the node configuration on tuscany 1.4, in
the example of calculator distribuited under directory
src/main/resource/cloud there are many file, one for every node of the
calculator, for example the nodeA has:

<composite      xmlns="http://www.osoa.org/xmlns/sca/1.0";
                xmlns:t="http://tuscany.apache.org/xmlns/sca/1.0";
                targetNamespace="http://sample/cloud";
                xmlns:s="http://sample";
                name="NodeA">

    <component name="NodeA">
        <t:implementation.node uri="nodeA" composite="s:CalculatorA"/>
        <service name="Node">
            <binding.sca uri="http://localhost:8100"/>
        </service>
    </component>

</composite>

it's possible to specify multiple binding for the node?
After domain manager is launched (ant runDomain) if i go to the URL
http://localhost:9990/node-config/NodeA and I load a configuration node for
NodeA i see this:
<composite targetNamespace="http://sample"; name="CalculatorA">
-
<component name="CalculatorServiceComponentA"
uri="CalculatorServiceComponentA">
<implementation.java class="calculator.CalculatorServiceImpl"/>
-
<reference name="addService">
<binding.sca name="addService" uri="
http://localhost:8200/AddServiceComponentB"/>
</reference>
-
<reference name="subtractService">
<binding.sca name="subtractService" uri="
http://localhost:8300/SubtractServiceComponentC"/>
</reference>
-
<reference name="multiplyService">
<binding.sca name="multiplyService" uri="/MultiplyServiceComponentA"/>
</reference>
-
<reference name="divideService">
<binding.sca name="divideService" uri="/DivideServiceComponentA"/>
</reference>
</component>
-
<component name="MultiplyServiceComponentA" uri="MultiplyServiceComponentA">
<implementation.java class="calculator.MultiplyServiceImpl"/>
-
<service name="MultiplyServiceImpl">
<interface.java interface="calculator.MultiplyServiceImpl"/>
<binding.sca name="MultiplyServiceImpl" uri="/MultiplyServiceComponentA"/>
<callback/>
</service>
</component>
-
<component name="DivideServiceComponentA" uri="DivideServiceComponentA">
<implementation.java class="calculator.DivideServiceImpl"/>
-
<service name="DivideServiceImpl">
<interface.java interface="calculator.DivideServiceImpl"/>
<binding.sca name="DivideServiceImpl" uri="/DivideServiceComponentA"/>
<callback/>
</service>
</component>
</composite>

I would to know ther relation between NodeA.composite and the node
Configuration on the atom feed of domain manager, expecially about multiple
bindings
Thanks a lot

Reply via email to