You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by lr...@apache.org on 2008/04/14 05:15:05 UTC

svn commit: r647652 - in /incubator/tuscany/java/sca/tutorial: ./ assets/ assets/META-INF/ assets/services/market/ domain/ domain/cloud/ domain/launch/ store-market/ store-market/META-INF/

Author: lresende
Date: Sun Apr 13 20:15:00 2008
New Revision: 647652

URL: http://svn.apache.org/viewvc?rev=647652&view=rev
Log:
TUSCANY-2224 - Tutorial Marketplace scenario

Added:
    incubator/tuscany/java/sca/tutorial/assets/services/market/
    incubator/tuscany/java/sca/tutorial/assets/services/market/MarketCatalogImpl.java   (with props)
    incubator/tuscany/java/sca/tutorial/domain/cloud/StoreMarketNode.composite   (with props)
    incubator/tuscany/java/sca/tutorial/domain/launch/LaunchStoreMarketNode.java   (with props)
    incubator/tuscany/java/sca/tutorial/store-market/   (with props)
    incubator/tuscany/java/sca/tutorial/store-market/META-INF/
    incubator/tuscany/java/sca/tutorial/store-market/META-INF/sca-contribution.xml   (with props)
    incubator/tuscany/java/sca/tutorial/store-market/build.xml   (with props)
    incubator/tuscany/java/sca/tutorial/store-market/pom.xml   (with props)
    incubator/tuscany/java/sca/tutorial/store-market/store-market.composite   (with props)
Modified:
    incubator/tuscany/java/sca/tutorial/assets/META-INF/sca-contribution.xml
    incubator/tuscany/java/sca/tutorial/assets/tutorial.html
    incubator/tuscany/java/sca/tutorial/domain/cloud.composite
    incubator/tuscany/java/sca/tutorial/domain/domain.composite
    incubator/tuscany/java/sca/tutorial/domain/workspace.xml
    incubator/tuscany/java/sca/tutorial/pom.xml

Modified: incubator/tuscany/java/sca/tutorial/assets/META-INF/sca-contribution.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tutorial/assets/META-INF/sca-contribution.xml?rev=647652&r1=647651&r2=647652&view=diff
==============================================================================
--- incubator/tuscany/java/sca/tutorial/assets/META-INF/sca-contribution.xml (original)
+++ incubator/tuscany/java/sca/tutorial/assets/META-INF/sca-contribution.xml Sun Apr 13 20:15:00 2008
@@ -19,6 +19,7 @@
 -->
 <contribution xmlns="http://www.osoa.org/xmlns/sca/1.0">
    <export.java package="services"/>
+   <export.java package="services.market"/>
    <export.java package="services.merger"/>
    <export.java package="services.db"/>
    <export.resource uri="uiservices/store.html"/>

Added: incubator/tuscany/java/sca/tutorial/assets/services/market/MarketCatalogImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tutorial/assets/services/market/MarketCatalogImpl.java?rev=647652&view=auto
==============================================================================
--- incubator/tuscany/java/sca/tutorial/assets/services/market/MarketCatalogImpl.java (added)
+++ incubator/tuscany/java/sca/tutorial/assets/services/market/MarketCatalogImpl.java Sun Apr 13 20:15:00 2008
@@ -0,0 +1,67 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+
+package services.market;
+
+import org.osoa.sca.annotations.Property;
+import org.osoa.sca.annotations.Reference;
+
+import services.Catalog;
+import services.CurrencyConverter;
+import services.Item;
+
+
+public class MarketCatalogImpl implements Catalog {
+
+    @Property
+    public String currencyCode = "USD";
+    
+    @Reference
+    public CurrencyConverter currencyConverter;
+    
+    @Reference(required=false)
+    protected Catalog[] goodsCatalog;
+
+    
+    public Item[] get() {
+	    
+	    String currencySymbol = currencyConverter.getCurrencySymbol(currencyCode);
+    
+        int length = 0;
+        
+        for(Catalog goods: goodsCatalog) {
+        	length += goods.get().length;
+        }
+       
+        Item[] catalog = new Item[length];
+        
+        int i = 0;
+        for (Catalog goods: goodsCatalog) {
+        	Item[] items = goods.get();
+        	for(Item item: items) {
+        		double price = Double.valueOf(item.getPrice().substring(1));  
+        		price = currencyConverter.getConversion("USD", currencyCode, price);
+        		catalog[i++] = new Item(item.getName(), currencySymbol + price);
+        	}
+        }        
+
+        return catalog;
+    }
+
+}

Propchange: incubator/tuscany/java/sca/tutorial/assets/services/market/MarketCatalogImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/tutorial/assets/services/market/MarketCatalogImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/tuscany/java/sca/tutorial/assets/tutorial.html
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tutorial/assets/tutorial.html?rev=647652&r1=647651&r2=647652&view=diff
==============================================================================
--- incubator/tuscany/java/sca/tutorial/assets/tutorial.html (original)
+++ incubator/tuscany/java/sca/tutorial/assets/tutorial.html Sun Apr 13 20:15:00 2008
@@ -29,6 +29,7 @@
 <h2><a href="http://localhost:8101/ui/store.html">Merger - Fruits and Vegetables</a>
 <h2><a href="http://localhost:8102/ui/store.html">Online Store - Cart Database</a>
 <h2><a href="http://localhost:8103/ui/store.html">Online Store - Supplier</a>
+<h2><a href="http://localhost:8105/ui/store.html">Online Store - Marketplace</a> 
 <h2><a href="http://localhost:8333/CatalogWebService?wsdl">Merged Catalog Web Service</a>
 <h2><a href="http://localhost:8104/ui/store-eu.html">EU Online Store</a>
 </body>

Modified: incubator/tuscany/java/sca/tutorial/domain/cloud.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tutorial/domain/cloud.composite?rev=647652&r1=647651&r2=647652&view=diff
==============================================================================
--- incubator/tuscany/java/sca/tutorial/domain/cloud.composite (original)
+++ incubator/tuscany/java/sca/tutorial/domain/cloud.composite Sun Apr 13 20:15:00 2008
@@ -26,6 +26,7 @@
   <include name="ns2:StoreMergerNode" uri="http://tuscany.apache.org/cloud" xmlns:ns2="http://tuscany.apache.org/cloud"/>
   <include name="ns2:StoreDBNode" uri="http://tuscany.apache.org/cloud" xmlns:ns2="http://tuscany.apache.org/cloud"/>
   <include name="ns2:StoreSupplierNode" uri="http://tuscany.apache.org/cloud" xmlns:ns2="http://tuscany.apache.org/cloud"/>
+  <include name="ns2:StoreMarketNode" uri="http://tuscany.apache.org/cloud" xmlns:ns2="http://tuscany.apache.org/cloud"/>   
   <include name="ns2:StoreEUNode" uri="http://tuscany.apache.org/cloud" xmlns:ns2="http://tuscany.apache.org/cloud"/>
   <include name="ns2:CatalogWebAppNode" uri="http://tuscany.apache.org/cloud" xmlns:ns2="http://tuscany.apache.org/cloud"/>
   <include name="ns2:CatalogMediationNode" uri="http://tuscany.apache.org/cloud" xmlns:ns2="http://tuscany.apache.org/cloud"/>

Added: incubator/tuscany/java/sca/tutorial/domain/cloud/StoreMarketNode.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tutorial/domain/cloud/StoreMarketNode.composite?rev=647652&view=auto
==============================================================================
--- incubator/tuscany/java/sca/tutorial/domain/cloud/StoreMarketNode.composite (added)
+++ incubator/tuscany/java/sca/tutorial/domain/cloud/StoreMarketNode.composite Sun Apr 13 20:15:00 2008
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+-->
+<composite	xmlns="http://www.osoa.org/xmlns/sca/1.0"
+		xmlns:t="http://tuscany.apache.org/xmlns/sca/1.0"
+		targetNamespace="http://tuscany.apache.org/cloud"
+		xmlns:s="http://store"
+		name="StoreMarketNode">
+
+	<component name="StoreMarketNode">
+		<t:implementation.node uri="store-market" composite="s:store-market"/>
+		<service name="Node">
+			<t:binding.http uri="http://localhost:8105"/>
+			<t:binding.jsonrpc uri="http://localhost:8105"/>
+			<t:binding.atom uri="http://localhost:8105"/>
+		</service>
+	</component> 
+
+</composite>

Propchange: incubator/tuscany/java/sca/tutorial/domain/cloud/StoreMarketNode.composite
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/tutorial/domain/cloud/StoreMarketNode.composite
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/java/sca/tutorial/domain/cloud/StoreMarketNode.composite
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Modified: incubator/tuscany/java/sca/tutorial/domain/domain.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tutorial/domain/domain.composite?rev=647652&r1=647651&r2=647652&view=diff
==============================================================================
--- incubator/tuscany/java/sca/tutorial/domain/domain.composite (original)
+++ incubator/tuscany/java/sca/tutorial/domain/domain.composite Sun Apr 13 20:15:00 2008
@@ -24,6 +24,7 @@
   <include name="ns2:store-merger" uri="store-merger" xmlns:ns2="http://store"/>
   <include name="ns2:store-db" uri="store-db" xmlns:ns2="http://store"/>
   <include name="ns2:store-supplier" uri="store-supplier" xmlns:ns2="http://store"/>
+  <include name="ns2:store-market" uri="store-market" xmlns:ns2="http://store"/> 
   <include name="ns2:store-eu" uri="store-eu" xmlns:ns2="http://store"/>
   <include name="ns2:catalogs" uri="web-services" xmlns:ns2="http://services"/>
   <include name="ns2:currency" uri="web-services" xmlns:ns2="http://services"/>

Added: incubator/tuscany/java/sca/tutorial/domain/launch/LaunchStoreMarketNode.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tutorial/domain/launch/LaunchStoreMarketNode.java?rev=647652&view=auto
==============================================================================
--- incubator/tuscany/java/sca/tutorial/domain/launch/LaunchStoreMarketNode.java (added)
+++ incubator/tuscany/java/sca/tutorial/domain/launch/LaunchStoreMarketNode.java Sun Apr 13 20:15:00 2008
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+
+package launch;
+
+import org.apache.tuscany.sca.node.launcher.NodeLauncher;
+
+public class LaunchStoreMarketNode {
+    public static void main(String[] args) throws Exception {
+        NodeLauncher.main(new String[] {"http://localhost:9990/node-image/StoreMarketNode"});
+    }
+}

Propchange: incubator/tuscany/java/sca/tutorial/domain/launch/LaunchStoreMarketNode.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/tutorial/domain/launch/LaunchStoreMarketNode.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/tuscany/java/sca/tutorial/domain/workspace.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tutorial/domain/workspace.xml?rev=647652&r1=647651&r2=647652&view=diff
==============================================================================
--- incubator/tuscany/java/sca/tutorial/domain/workspace.xml (original)
+++ incubator/tuscany/java/sca/tutorial/domain/workspace.xml Sun Apr 13 20:15:00 2008
@@ -23,6 +23,7 @@
   <contribution location="file:../store-merger/target/tutorial-store-merger.jar" uri="store-merger"/>
   <contribution location="file:../store-db/target/tutorial-store-db.jar" uri="store-db"/>
   <contribution location="file:../store-supplier/target/tutorial-store-supplier.jar" uri="store-supplier"/>
+  <contribution location="file:../store-market/target/tutorial-store-market.jar" uri="store-market"/> 
   <contribution location="file:../store-eu/target/tutorial-store-eu.jar" uri="store-eu"/>
   <contribution location="file:../web-services/target/tutorial-web-services.jar" uri="web-services"/>
   <contribution location="file:../catalog-webapp/target/tutorial-catalog-webapp.war" uri="catalog-webapp"/>

Modified: incubator/tuscany/java/sca/tutorial/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tutorial/pom.xml?rev=647652&r1=647651&r2=647652&view=diff
==============================================================================
--- incubator/tuscany/java/sca/tutorial/pom.xml (original)
+++ incubator/tuscany/java/sca/tutorial/pom.xml Sun Apr 13 20:15:00 2008
@@ -42,6 +42,7 @@
                 <module>store-merger</module>
                 <module>store-db</module>
                 <module>store-supplier</module>
+                <module>store-market</module>
                 <module>store-eu</module>
                 <module>web-services</module>
                 <module>catalog-webapp</module>

Propchange: incubator/tuscany/java/sca/tutorial/store-market/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sun Apr 13 20:15:00 2008
@@ -0,0 +1,19 @@
+target
+work
+dojo
+*.iws
+*.ipr
+*.iml
+derby.log
+maven.log
+build.xml
+build-dependency.xml
+velocity.log*
+junit*.properties
+surefire*.properties
+.project
+.classpath
+.settings
+.deployables
+.wtpmodules
+.externalToolBuilders

Added: incubator/tuscany/java/sca/tutorial/store-market/META-INF/sca-contribution.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tutorial/store-market/META-INF/sca-contribution.xml?rev=647652&view=auto
==============================================================================
--- incubator/tuscany/java/sca/tutorial/store-market/META-INF/sca-contribution.xml (added)
+++ incubator/tuscany/java/sca/tutorial/store-market/META-INF/sca-contribution.xml Sun Apr 13 20:15:00 2008
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+	* Licensed to the Apache Software Foundation (ASF) under one
+	* or more contributor license agreements.  See the NOTICE file
+	* distributed with this work for additional information
+	* regarding copyright ownership.  The ASF licenses this file
+	* to you under the Apache License, Version 2.0 (the
+	* "License"); you may not use this file except in compliance
+	* with the License.  You may obtain a copy of the License at
+	* 
+	*   http://www.apache.org/licenses/LICENSE-2.0
+	* 
+	* Unless required by applicable law or agreed to in writing,
+	* software distributed under the License is distributed on an
+	* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+	* KIND, either express or implied.  See the License for the
+	* specific language governing permissions and limitations
+	* under the License.    
+-->
+<contribution xmlns="http://www.osoa.org/xmlns/sca/1.0"
+	xmlns:s="http://store">
+	<import.java package="services" />
+	<import.java package="services.market" />
+    <import.resource uri="uiservices/store.html"/>   
+    <deployable composite="s:store-market" />
+</contribution>
\ No newline at end of file

Propchange: incubator/tuscany/java/sca/tutorial/store-market/META-INF/sca-contribution.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/tutorial/store-market/META-INF/sca-contribution.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/java/sca/tutorial/store-market/META-INF/sca-contribution.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/tuscany/java/sca/tutorial/store-market/build.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tutorial/store-market/build.xml?rev=647652&view=auto
==============================================================================
--- incubator/tuscany/java/sca/tutorial/store-market/build.xml (added)
+++ incubator/tuscany/java/sca/tutorial/store-market/build.xml Sun Apr 13 20:15:00 2008
@@ -0,0 +1,54 @@
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+
+<project name="tutorial-store-market" default="compile">
+
+    <target name="compile">
+        <mkdir dir="target/classes"/>
+        <javac destdir="target/classes" debug="on" source="1.5" target="1.5">
+            <src path="."/>
+            <classpath>
+                <fileset refid="tuscany.jars"/>
+                <fileset refid="3rdparty.jars"/>
+            </classpath>
+        </javac>
+        <copy todir="target/classes">
+            <fileset dir="." excludes="**/*.java, pom.xml, build.xml, target"/>
+        </copy>
+        <jar destfile="target/tutorial-store-market.jar" basedir="target/classes">
+            <manifest>
+            </manifest>
+        </jar>
+    </target>
+
+    <target name="package" depends="compile"/>
+
+    <target name="clean">
+        <delete includeemptydirs="true">
+            <fileset dir="target"/>
+        </delete>
+    </target>
+
+    <fileset id="tuscany.jars" dir="../../modules">
+        <include name="tuscany-sca-api-2.0-incubating-SNAPSHOT.jar"/>
+    </fileset>
+    <fileset id="3rdparty.jars" dir="../../lib">
+    </fileset>
+
+</project>

Propchange: incubator/tuscany/java/sca/tutorial/store-market/build.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/tutorial/store-market/build.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/java/sca/tutorial/store-market/build.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/tuscany/java/sca/tutorial/store-market/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tutorial/store-market/pom.xml?rev=647652&view=auto
==============================================================================
--- incubator/tuscany/java/sca/tutorial/store-market/pom.xml (added)
+++ incubator/tuscany/java/sca/tutorial/store-market/pom.xml Sun Apr 13 20:15:00 2008
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    * Licensed to the Apache Software Foundation (ASF) under one
+    * or more contributor license agreements.  See the NOTICE file
+    * distributed with this work for additional information
+    * regarding copyright ownership.  The ASF licenses this file
+    * to you under the Apache License, Version 2.0 (the
+    * "License"); you may not use this file except in compliance
+    * with the License.  You may obtain a copy of the License at
+    * 
+    *   http://www.apache.org/licenses/LICENSE-2.0
+    * 
+    * Unless required by applicable law or agreed to in writing,
+    * software distributed under the License is distributed on an
+    * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    * KIND, either express or implied.  See the License for the
+    * specific language governing permissions and limitations
+    * under the License.    
+-->
+<project>
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-tutorial</artifactId>
+        <version>2.0-incubating-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+    <artifactId>tutorial-store-market</artifactId>
+    <name>Apache Tuscany SCA Tutorial Marketplace Online Store</name>
+
+    <repositories>
+       <repository>
+          <id>apache.incubator</id>
+          <url>http://people.apache.org/repo/m2-incubating-repository</url>
+       </repository>
+    </repositories>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-sca-api</artifactId>
+            <version>2.0-incubating-SNAPSHOT</version>
+        </dependency>
+    </dependencies>
+    
+    <build>
+       <finalName>${artifactId}</finalName>
+       <sourceDirectory>${basedir}</sourceDirectory>
+       <resources>
+          <resource>
+              <directory>${basedir}</directory>
+              <excludes>
+                  <exclude>**/*.java</exclude>
+                  <exclude>**/.*/**</exclude>
+                  <exclude>pom.xml</exclude>
+                  <exclude>build.xml</exclude>
+              </excludes>
+          </resource>
+       </resources>
+       <plugins>
+            <plugin>
+                <groupId>org.apache.tuscany.sca</groupId>
+                <artifactId>tuscany-maven-ant-generator</artifactId>
+                <version>2.0-incubating-SNAPSHOT</version>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>generate</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+       </plugins>
+    </build>
+
+</project>

Propchange: incubator/tuscany/java/sca/tutorial/store-market/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/tutorial/store-market/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/java/sca/tutorial/store-market/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/tuscany/java/sca/tutorial/store-market/store-market.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tutorial/store-market/store-market.composite?rev=647652&view=auto
==============================================================================
--- incubator/tuscany/java/sca/tutorial/store-market/store-market.composite (added)
+++ incubator/tuscany/java/sca/tutorial/store-market/store-market.composite Sun Apr 13 20:15:00 2008
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+-->
+<composite	xmlns="http://www.osoa.org/xmlns/sca/1.0"
+		xmlns:t="http://tuscany.apache.org/xmlns/sca/1.0"
+		targetNamespace="http://store"
+		name="store-market">
+		
+    <component name="StoreMarket">
+        <t:implementation.widget location="uiservices/store.html"/>
+        <service name="Widget">
+        	<t:binding.http uri="/ui"/> 
+        </service>
+		<reference name="catalog" target="StoreMarketCatalog">
+		 	<t:binding.jsonrpc/>
+		 </reference>
+		 <reference name="shoppingCart" target="StoreMarketShoppingCart/Cart">
+		 	<t:binding.atom/>
+		 </reference>
+		 <reference name="shoppingTotal" target="StoreMarketShoppingCart/Total">
+		 	<t:binding.jsonrpc/>
+		 </reference>
+    </component>
+    
+	<component name="StoreMarketCatalog">
+		<implementation.java class="services.market.MarketCatalogImpl"/> 
+		<property name="currencyCode">USD</property>
+		<service name="Catalog">
+			<t:binding.jsonrpc/>
+   		</service>
+		<reference name="goodsCatalog" multiplicity="0..n" target="VegetablesCatalogWebService FruitsCatalogWebService" >
+			<binding.ws />
+		</reference>
+		<reference name="currencyConverter" target="StoreMarketCurrencyConverter"/>
+		
+	</component>
+	
+ 	<component name="StoreMarketShoppingCart">
+		<implementation.java class="services.ShoppingCartImpl"/>
+		<service name="Cart">
+			<t:binding.atom uri="/ShoppingCart/Cart"/>
+		</service>    	
+		<service name="Total">
+			<t:binding.jsonrpc/>
+		</service>
+	</component>
+    
+	<component name="StoreMarketCurrencyConverter">
+		<implementation.java class="services.CurrencyConverterImpl"/>
+	</component>     
+
+</composite>

Propchange: incubator/tuscany/java/sca/tutorial/store-market/store-market.composite
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/tutorial/store-market/store-market.composite
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/java/sca/tutorial/store-market/store-market.composite
------------------------------------------------------------------------------
    svn:mime-type = text/xml



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org