Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

  • tuscany-jms-discovery-0.1-incubating-SNAPSHOT.jar
  • apache-activemq-4.1.0-incubator.jar
  • tuscany-http-jetty-0.1-incubating-SNAPSHOT.jar
  • jetty-6.1.0.jar
  • jetty-util-6.1.0.jar
  • tuscany-sca-console-0.1-incubating-SNAPSHOT.jar
  • geronimo-j2ee-connector_1.5_spec-1.0.jar

into each of the profiles boot directories

Manually From Head

I couldn't get this to work as the core tests now fail

...

You can access the admin console from http://localhost:7000/scdlFormImage Removed and
if you target the deployed SCDL to slave1, access the demo appilcation
from http://localhsot:8000/calculatorFormImage Removed. The test scdl is as follows
(this is what you submit from the admin console to target a deployment
to a slave),

Code Block
xml
xml

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

Here is the actual sequence of events:

Start ActiveMQ

Code Block

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

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>