diff options
Diffstat (limited to 'branches/sca-android/tutorials/store/www-services/catalog-amazon/cart-amazon/src/main/java/shoppingstore/server')
-rw-r--r-- | branches/sca-android/tutorials/store/www-services/catalog-amazon/cart-amazon/src/main/java/shoppingstore/server/ShoppingStoreServer.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/branches/sca-android/tutorials/store/www-services/catalog-amazon/cart-amazon/src/main/java/shoppingstore/server/ShoppingStoreServer.java b/branches/sca-android/tutorials/store/www-services/catalog-amazon/cart-amazon/src/main/java/shoppingstore/server/ShoppingStoreServer.java new file mode 100644 index 0000000000..486946b2fc --- /dev/null +++ b/branches/sca-android/tutorials/store/www-services/catalog-amazon/cart-amazon/src/main/java/shoppingstore/server/ShoppingStoreServer.java @@ -0,0 +1,25 @@ +package shoppingstore.server; + +import java.io.IOException; + +import org.apache.tuscany.sca.host.embedded.SCADomain; + +public class ShoppingStoreServer { + + public static void main(String[] args) { + + SCADomain scaDomain = SCADomain.newInstance("shoppingstore.composite"); + + try { + System.out.println("ToyApp server started (press enter to shutdown)"); + System.in.read(); + } catch (IOException e) { + e.printStackTrace(); + } + + scaDomain.close(); + System.out.println("ToyApp server stopped"); + } + + +} |