You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by ke...@apache.org on 2010/02/25 18:18:05 UTC

svn commit: r916355 - in /tuscany/sca-java-2.x/trunk/samples/store-webapp: pom.xml src/main/resources/store.composite src/main/webapp/store.html

Author: kelvingoodson
Date: Thu Feb 25 17:18:04 2010
New Revision: 916355

URL: http://svn.apache.org/viewvc?rev=916355&view=rev
Log:
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

Modified:
    tuscany/sca-java-2.x/trunk/samples/store-webapp/pom.xml
    tuscany/sca-java-2.x/trunk/samples/store-webapp/src/main/resources/store.composite
    tuscany/sca-java-2.x/trunk/samples/store-webapp/src/main/webapp/store.html

Modified: tuscany/sca-java-2.x/trunk/samples/store-webapp/pom.xml
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/samples/store-webapp/pom.xml?rev=916355&r1=916354&r2=916355&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/samples/store-webapp/pom.xml (original)
+++ tuscany/sca-java-2.x/trunk/samples/store-webapp/pom.xml Thu Feb 25 17:18:04 2010
@@ -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>

Modified: tuscany/sca-java-2.x/trunk/samples/store-webapp/src/main/resources/store.composite
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/samples/store-webapp/src/main/resources/store.composite?rev=916355&r1=916354&r2=916355&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/samples/store-webapp/src/main/resources/store.composite (original)
+++ tuscany/sca-java-2.x/trunk/samples/store-webapp/src/main/resources/store.composite Thu Feb 25 17:18:04 2010
@@ -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>
     

Modified: tuscany/sca-java-2.x/trunk/samples/store-webapp/src/main/webapp/store.html
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/samples/store-webapp/src/main/webapp/store.html?rev=916355&r1=916354&r2=916355&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/samples/store-webapp/src/main/webapp/store.html (original)
+++ tuscany/sca-java-2.x/trunk/samples/store-webapp/src/main/webapp/store.html Thu Feb 25 17:18:04 2010
@@ -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">