...
You can access the admin console from http://localhost:7000/scdlForm and
if you target the deployed SCDL to slave1, access the demo appilcation
from http://localhsot:8000/calculatorForm. The test scdl is as follows
(this is what you submit from the admin console to target a deployment
to a slave),
Code Block | ||||
---|---|---|---|---|
| ||||
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" |
...
xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/2.0-alpha" |
...
name="CalculatorComposite"> |
...
<component runtimeId=" |
...
slave1" 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 runtimeId=" |
...
slave1" name="AddServiceComponent"> |
...
<implementation.java class="calculator.AddServiceImpl"/> |
...
</component> |
...
<component runtimeId=" |
...
slave1" name="SubtractServiceComponent"> |
...
<implementation.java class="calculator.SubtractServiceImpl"/> |
...
</component> |
...
<component runtimeId=" |
...
slave1" name="MultiplyServiceComponent"> |
...
<implementation.java class="calculator.MultiplyServiceImpl"/> |
...
</component> |
...
<component runtimeId=" |
...
slave1" name="DivideServiceComponent"> |
...
<implementation.java class="calculator.DivideServiceImpl"/> |
...
</component> </composite> {code:xml} Here is the actual sequence of events: Start ActiveMQ |
java -Dtuscany.adminPort=2000 -jar server.start.jar master
java -Dtuscany.adminPort=3000 -jar server.start.jar slave1
java -Dtuscany.adminPort=4000 -jar server.start.jar slave2
Code Block |
---|
Each of these just reports "Started" on the command line
Go to http://localhost:7000/scdlForm in a browser and paste in the SCDL from above to configure slave1 to create and wire the calculator components.
Go to http://localhsot:8000/calculatorForm in a browser and see the form that drives the calculator sample. Type in a couple of numbers and press Add.</composite>