summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/samples
diff options
context:
space:
mode:
authorkelvingoodson <kelvingoodson@13f79535-47bb-0310-9956-ffa450edef68>2010-02-25 17:18:04 +0000
committerkelvingoodson <kelvingoodson@13f79535-47bb-0310-9956-ffa450edef68>2010-02-25 17:18:04 +0000
commita25302a30a386b4578396db3d3d1dc880190183b (patch)
treeb341ae49534886aa25673e76359b50cb2fd8f288 /sca-java-2.x/trunk/samples
parent683ba0c7bcda83722e4d143487e90b3d728c73cd (diff)
progressing towards getting the store webapp going - after this commit you should expect to see "dojo is undefined" -- committing as this represents progress, but need to discuss current state on the list
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@916355 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/samples')
-rw-r--r--sca-java-2.x/trunk/samples/store-webapp/pom.xml8
-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
3 files changed, 21 insertions, 7 deletions
diff --git a/sca-java-2.x/trunk/samples/store-webapp/pom.xml b/sca-java-2.x/trunk/samples/store-webapp/pom.xml
index 9d5db0618f..abb5da5a06 100644
--- a/sca-java-2.x/trunk/samples/store-webapp/pom.xml
+++ b/sca-java-2.x/trunk/samples/store-webapp/pom.xml
@@ -85,6 +85,14 @@
<scope>runtime</scope>
</dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-binding-http-runtime</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ <scope>runtime</scope>
+ </dependency>
+
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
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">