summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/samples/store-webapp/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'sca-java-2.x/trunk/samples/store-webapp/src/main')
-rw-r--r--sca-java-2.x/trunk/samples/store-webapp/src/main/resources/store.composite17
-rw-r--r--sca-java-2.x/trunk/samples/store-webapp/src/main/webapp/store.html3
2 files changed, 13 insertions, 7 deletions
diff --git a/sca-java-2.x/trunk/samples/store-webapp/src/main/resources/store.composite b/sca-java-2.x/trunk/samples/store-webapp/src/main/resources/store.composite
index 59bb4bdab3..6bdcab4749 100644
--- a/sca-java-2.x/trunk/samples/store-webapp/src/main/resources/store.composite
+++ b/sca-java-2.x/trunk/samples/store-webapp/src/main/resources/store.composite
@@ -24,16 +24,21 @@
<component name="Store">
<tuscany:implementation.widget location="store.html"/>
- <reference name="catalog" target="Catalog"></reference>
- <reference name="shoppingCart" target="ShoppingCart/Cart"></reference>
- <reference name="shoppingTotal" target="ShoppingCart/Total"></reference>
+ <service name="Widget">
+ <tuscany:binding.http uri="/store"/>
+ </service>
+ <reference name="catalog" target="Catalog"/>
+ <reference name="shoppingCart" target="ShoppingCart/Cart"/>
+ <reference name="shoppingTotal" target="ShoppingCart/Total"/>
</component>
+
+
<component name="Catalog">
<implementation.java class="services.FruitsCatalogImpl"/>
<property name="currencyCode">USD</property>
<service name="Catalog">
- <tuscany:binding.jsonrpc uri="http://localhost:8080/sample-store-webapp/Catalog"/>
+ <tuscany:binding.jsonrpc uri="/Catalog"/>
</service>
<reference name="currencyConverter" target="CurrencyConverter"/>
</component>
@@ -41,10 +46,10 @@
<component name="ShoppingCart">
<implementation.java class="services.ShoppingCartImpl"/>
<service name="Cart">
- <tuscany:binding.atom uri="http://localhost:8080/sample-store-webapp/ShoppingCart/Cart"/>
+ <tuscany:binding.atom uri="/ShoppingCart/Cart"/>
</service>
<service name="Total">
- <tuscany:binding.jsonrpc uri="http://localhost:8080/sample-store-webapp/Total"/>
+ <tuscany:binding.jsonrpc uri="ShoppingCart/Total"/>
</service>
</component>
diff --git a/sca-java-2.x/trunk/samples/store-webapp/src/main/webapp/store.html b/sca-java-2.x/trunk/samples/store-webapp/src/main/webapp/store.html
index ba004e02ac..cf5ae12e8e 100644
--- a/sca-java-2.x/trunk/samples/store-webapp/src/main/webapp/store.html
+++ b/sca-java-2.x/trunk/samples/store-webapp/src/main/webapp/store.html
@@ -20,7 +20,8 @@
<head>
<title>Store</title>
-<script type="text/javascript" src="store.js"></script>
+<script type="text/javascript" src="/sample-store-webapp/dojo/dojo.js"></script>
+<script type="text/javascript" src="/sample-store-webapp/store/store.js"></script>
<script language="JavaScript">