diff options
author | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-10-26 06:27:26 +0000 |
---|---|---|
committer | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-10-26 06:27:26 +0000 |
commit | e40410d3e5a1491abda7cec2094e3749614dc84a (patch) | |
tree | 5373cb0e20b492be7aace2059785c6c948848e12 /sandbox/sca-cloud-tutorial/store-appengine-webapp/src/store.composite | |
parent | af2857365e659d99dda12bee356681ab7b789822 (diff) |
Adding support for multi-user shoppingCart
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@829709 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | sandbox/sca-cloud-tutorial/store-appengine-webapp/src/store.composite | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/sandbox/sca-cloud-tutorial/store-appengine-webapp/src/store.composite b/sandbox/sca-cloud-tutorial/store-appengine-webapp/src/store.composite index 255857ffd4..4fac764518 100644 --- a/sandbox/sca-cloud-tutorial/store-appengine-webapp/src/store.composite +++ b/sandbox/sca-cloud-tutorial/store-appengine-webapp/src/store.composite @@ -48,19 +48,20 @@ </service> </component> - <component name="ShoppingCart"> - <implementation.java class="services.ShoppingCartImpl"/> - <service name="Cart"> - <tuscany:binding.jsonrpc uri="/ShoppingCart/Cart"/> - </service> - <service name="Total"> - <tuscany:binding.jsonrpc uri="/ShoppingCart/Total"/> - </service> + <component name="ShoppingCartManager"> + <implementation.java class="services.ShoppingCartManager"/> + <service name="ShoppingCart"> + <tuscany:binding.jsonrpc uri="/ShoppingCart"/> + </service> + <reference name="userService" target="UserService"> + <binding.sca/> + </reference> </component> <component name="UserService"> <implementation.java class="org.apache.tuscany.sca.cloud.user.impl.GoogleUserService"/> <service name="UserService"> + <binding.sca/> <tuscany:binding.jsonrpc uri="/User"/> </service> </component> |