summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2012-05-27 06:25:39 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2012-05-27 06:25:39 +0000
commitb61b4c85131c246ebfe9c2a9870755a26fb07a99 (patch)
treed3f3f34f9cb0f91ee6ebe6fda39893702fdff195
parent8cb395b6412b7b0862487b82132bd9866b2eaf4b (diff)
Bringup store sample
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1342999 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--sca-java-2.x/trunk/samples/applications/pom.xml45
-rw-r--r--sca-java-2.x/trunk/samples/applications/store/pom.xml5
-rw-r--r--sca-java-2.x/trunk/samples/applications/store/src/main/resources/store.composite2
-rw-r--r--sca-java-2.x/trunk/samples/pom.xml1
4 files changed, 52 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/samples/applications/pom.xml b/sca-java-2.x/trunk/samples/applications/pom.xml
new file mode 100644
index 0000000000..80029730d0
--- /dev/null
+++ b/sca-java-2.x/trunk/samples/applications/pom.xml
@@ -0,0 +1,45 @@
+<?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.samples</groupId>
+ <artifactId>tuscany-samples</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <artifactId>tuscany-samples-applications</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <name>Apache Tuscany SCA Sample Applications</name>
+
+ <profiles>
+ <profile>
+ <id>default</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <modules>
+ <module>store</module>
+ </modules>
+ </profile>
+ </profiles>
+</project>
diff --git a/sca-java-2.x/trunk/samples/applications/store/pom.xml b/sca-java-2.x/trunk/samples/applications/store/pom.xml
index 059a74efd5..cc06aa5672 100644
--- a/sca-java-2.x/trunk/samples/applications/store/pom.xml
+++ b/sca-java-2.x/trunk/samples/applications/store/pom.xml
@@ -52,6 +52,11 @@
</dependency>
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-binding-rest-runtime</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
<artifactId>tuscany-binding-jsonrpc-runtime</artifactId>
<version>2.0-SNAPSHOT</version>
</dependency>
diff --git a/sca-java-2.x/trunk/samples/applications/store/src/main/resources/store.composite b/sca-java-2.x/trunk/samples/applications/store/src/main/resources/store.composite
index 9c3b79c508..f018751670 100644
--- a/sca-java-2.x/trunk/samples/applications/store/src/main/resources/store.composite
+++ b/sca-java-2.x/trunk/samples/applications/store/src/main/resources/store.composite
@@ -25,7 +25,7 @@
<component name="Store">
<tuscany:implementation.widget location="uiservices/store.html"/>
<service name="Widget">
- <tuscany:binding.http uri="/store"/>
+ <tuscany:binding.rest uri="/store"/>
</service>
<reference name="catalog" target="Catalog"/>
<reference name="shoppingCart" target="ShoppingCart/Cart"/>
diff --git a/sca-java-2.x/trunk/samples/pom.xml b/sca-java-2.x/trunk/samples/pom.xml
index 2f0417e09c..bf5814479e 100644
--- a/sca-java-2.x/trunk/samples/pom.xml
+++ b/sca-java-2.x/trunk/samples/pom.xml
@@ -32,6 +32,7 @@
<name>Apache Tuscany SCA Samples</name>
<modules>
+ <module>applications</module>
<module>getting-started</module>
<module>running-tuscany</module>
<module>learning-more</module>