The Tuscany supply chain sample shows using the Tuscany SCA runtime in a J2SE environment executing the SCA asynchronous API.
Linux: java -cp ../../../lib/tuscany-runtime-incubating-M1.jar:target/sample-supplychain-incubating-M1.jar supplychain.SupplyChainClient
Windows: java -cp ../../../lib/tuscany-runtime-incubating-M1.jar;target/sample-supplychain-incubating-M1.jar supplychain.SupplyChainClient
The sample when run should simply display to the standard
output:
May 16, 2006
3:12:13 PM org.apache.tuscany.core.client.TuscanyRuntime$Monitor
moduleStarted
INFO: Started application module [supplychain]
Main
thread Thread[main,5,main]
Work thread Thread[Thread-1,5,main]
- Order, submitted, fulfilled, shipped
src +---main +---java ¦ +---supplychain ¦ Customer.java ¦ CustomerComponentImpl.java ¦ Retailer.java ¦ RetailerComponentImpl.java ¦ Shipper.java ¦ ShipperComponentImpl.java ¦ SupplyChainClient.java ¦ Warehouse.java ¦ WarehouseComponentImpl.java ¦ +---resources logging.properties sca.module |
Customer.java | Defines the Java interface implemented by the Customer component. |
CustomerComponentImpl.java | Implements the SCA Customer component. |
Retailer.java | Defines the Java interface implemented by the Retailer component. |
RetailerComponentImpl.java | Implements the SCA RetailerComponent component. |
Shipper.java | Defines the Java interface implemented by the Shipper component |
ShipperComponentImpl.java | Implements the SCA ShipperComponent component. |
SupplyChainClient.java | SupplyChainClient.java loads SCA runtime |
Warehouse.java | Defines the Java interface implemented by the Warehouse component. |
WarehouseComponentImpl.java | Implements the SCA WarehouseComponent component. |
logging.properties | Configures Tuscany logging. Provides the output of this demo. |
sca.module | Defines and assembles the SCA components |