Author: lresende
Date: Mon Oct  5 18:05:09 2009
New Revision: 821945

URL: http://svn.apache.org/viewvc?rev=821945&view=rev
Log:
Tuscany store scenario running on appengine - Dojo based UI front-end consuming 
a remote catalog service using  JSON-RPC reference binding

Added:
    tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/
    tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/.classpath
    
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/.externalToolBuilders/
    
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/.externalToolBuilders/com.google.appengine.eclipse.core.enhancerbuilder.launch
    tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/.project
    tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/.settings/
    
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/.settings/com.google.appengine.eclipse.core.prefs
    
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/.settings/com.google.gdt.eclipse.core.prefs
    
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/.settings/com.google.gwt.eclipse.core.prefs
    tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/build-dojo.xml  
 (with props)
    tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/pom.xml   (with 
props)
    tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/
    
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/log4j.properties
   (with props)
    tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/
    
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/Catalog.java
   (with props)
    
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/CatalogAggregatorImpl.java
   (with props)
    
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/CurrencyConverter.java
   (with props)
    
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/CurrencyConverterImpl.java
   (with props)
    
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/Item.java
   (with props)
    
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/store.composite 
  (with props)
    tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/
    tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/META-INF/
    
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/META-INF/sca-contribution.xml
   (with props)
    tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/
    
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/appengine-web.xml
   (with props)
    
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/classes/
    
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/classes/log4j.properties
   (with props)
    
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/classes/services/
    
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/classes/services/Catalog.class
   (with props)
    
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/classes/services/CatalogAggregatorImpl.class
   (with props)
    
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/classes/services/CurrencyConverter.class
   (with props)
    
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/classes/services/CurrencyConverterImpl.class
   (with props)
    
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/classes/services/Item.class
   (with props)
    
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/classes/store.composite
   (with props)
    tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/lib/
    
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/logging.properties
   (with props)
    
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/web.xml 
  (with props)
    tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/store.html  
 (with props)

Added: tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/.classpath
URL: 
http://svn.apache.org/viewvc/tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/.classpath?rev=821945&view=auto
==============================================================================
--- tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/.classpath 
(added)
+++ tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/.classpath Mon 
Oct  5 18:05:09 2009
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+        <classpathentry kind="src" path="src"/>
+        <classpathentry kind="con" 
path="com.google.appengine.eclipse.core.GAE_CONTAINER"/>
+        <classpathentry kind="con" 
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+        <classpathentry kind="lib" 
path="war/WEB-INF/lib/tuscany-sca-api-2.0-SNAPSHOT.jar"/>
+        <classpathentry kind="output" path="war/WEB-INF/classes"/>
+</classpath>
+

Added: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/.externalToolBuilders/com.google.appengine.eclipse.core.enhancerbuilder.launch
URL: 
http://svn.apache.org/viewvc/tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/.externalToolBuilders/com.google.appengine.eclipse.core.enhancerbuilder.launch?rev=821945&view=auto
==============================================================================
--- 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/.externalToolBuilders/com.google.appengine.eclipse.core.enhancerbuilder.launch
 (added)
+++ 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/.externalToolBuilders/com.google.appengine.eclipse.core.enhancerbuilder.launch
 Mon Oct  5 18:05:09 2009
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType">
+<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_BUILDER_ENABLED" 
value="false"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_DISABLED_BUILDER" 
value="com.google.appengine.eclipse.core.enhancerbuilder"/>
+<mapAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS"/>
+<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" 
value="true"/>
+</launchConfiguration>

Added: tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/.project
URL: 
http://svn.apache.org/viewvc/tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/.project?rev=821945&view=auto
==============================================================================
--- tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/.project (added)
+++ tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/.project Mon 
Oct  5 18:05:09 2009
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+       <name>store-appengine-webapp</name>
+       <comment></comment>
+       <projects>
+       </projects>
+       <buildSpec>
+               <buildCommand>
+                       <name>org.eclipse.jdt.core.javabuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       
<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
+                       <triggers>full,incremental,</triggers>
+                       <arguments>
+                               <dictionary>
+                                       <key>LaunchConfigHandle</key>
+                                       
<value>&lt;project&gt;/.externalToolBuilders/com.google.appengine.eclipse.core.enhancerbuilder.launch</value>
+                               </dictionary>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       
<name>com.google.appengine.eclipse.core.projectValidator</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       
<name>com.google.gdt.eclipse.core.webAppProjectValidator</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+       </buildSpec>
+       <natures>
+               <nature>org.eclipse.jdt.core.javanature</nature>
+               <nature>com.google.appengine.eclipse.core.gaeNature</nature>
+               <nature>com.google.gdt.eclipse.core.webAppNature</nature>
+       </natures>
+</projectDescription>

Added: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/.settings/com.google.appengine.eclipse.core.prefs
URL: 
http://svn.apache.org/viewvc/tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/.settings/com.google.appengine.eclipse.core.prefs?rev=821945&view=auto
==============================================================================
--- 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/.settings/com.google.appengine.eclipse.core.prefs
 (added)
+++ 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/.settings/com.google.appengine.eclipse.core.prefs
 Mon Oct  5 18:05:09 2009
@@ -0,0 +1,5 @@
+#Sat Oct 03 12:24:03 PDT 2009
+eclipse.preferences.version=1
+filesCopiedToWebInfLib=appengine-api-1.0-sdk-1.2.5.jar|appengine-api-labs-1.2.5.jar|datanucleus-appengine-1.0.3.jar|datanucleus-core-1.1.5.jar|datanucleus-jpa-1.1.5.jar|geronimo-jpa_3.0_spec-1.1.1.jar|geronimo-jta_1.1_spec-1.1.1.jar|jdo2-api-2.3-eb.jar
+ormEnhancementInclusions=
+validationExclusions=

Added: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/.settings/com.google.gdt.eclipse.core.prefs
URL: 
http://svn.apache.org/viewvc/tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/.settings/com.google.gdt.eclipse.core.prefs?rev=821945&view=auto
==============================================================================
--- 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/.settings/com.google.gdt.eclipse.core.prefs
 (added)
+++ 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/.settings/com.google.gdt.eclipse.core.prefs
 Mon Oct  5 18:05:09 2009
@@ -0,0 +1,3 @@
+#Mon Sep 21 18:15:57 PDT 2009
+eclipse.preferences.version=1
+jarsExcludedFromWebInfLib=

Added: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/.settings/com.google.gwt.eclipse.core.prefs
URL: 
http://svn.apache.org/viewvc/tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/.settings/com.google.gwt.eclipse.core.prefs?rev=821945&view=auto
==============================================================================
--- 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/.settings/com.google.gwt.eclipse.core.prefs
 (added)
+++ 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/.settings/com.google.gwt.eclipse.core.prefs
 Mon Oct  5 18:05:09 2009
@@ -0,0 +1,3 @@
+#Mon Sep 21 18:15:57 PDT 2009
+eclipse.preferences.version=1
+filesCopiedToWebInfLib=

Added: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/build-dojo.xml
URL: 
http://svn.apache.org/viewvc/tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/build-dojo.xml?rev=821945&view=auto
==============================================================================
--- tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/build-dojo.xml 
(added)
+++ tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/build-dojo.xml 
Mon Oct  5 18:05:09 2009
@@ -0,0 +1,92 @@
+<?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 name="DojoZipInstaller">
+       
+
+    <property name="dojo.version" value="1.3.0"/>
+    <property name="unpack.location" value="${basedir}/war/dojo"/>
+       
+
+    <target name="check-dojo-installed">
+        <condition property="already.installed" >
+            <available 
file="${localRepository}/dojo/dojo/${dojo.version}/dojo-${dojo.version}.zip"/>
+        </condition>
+        <condition property="maven.suffix" value="">
+            <os family="unix"/>
+        </condition>
+        <condition property="maven.suffix" value=".bat">
+            <os family="windows"/>
+        </condition>
+    </target>
+       
+
+    <target name="check-dojo-unpacked">
+        <condition property="already.unpacked" >
+            <available file="${unpack.location}"/>
+        </condition>
+    </target>
+
+    <target name="install-dojo" depends="check-dojo-installed" 
unless="already.installed">
+        <mkdir dir="${basedir}/target/dojo-download/"/>
+        <get 
src="http://download.dojotoolkit.org/release-${dojo.version}/dojo-release-${dojo.version}.zip";
+            
dest="${basedir}/target/dojo-download/dojo-release-${dojo.version}.zip"
+            verbose="true"
+            usetimestamp="true"/>
+        <exec executable="mvn${maven.suffix}" dir="${basedir}" 
failonerror="false">
+            <arg line="install:install-file -DgroupId=dojo  -DartifactId=dojo 
-Dversion=${dojo.version} -Dpackaging=zip -DgeneratePom=true 
-Dfile=${basedir}/target/dojo-download/dojo-release-${dojo.version}.zip"/>
+        </exec>
+    </target>
+
+    <target name="install-dojo-nomaven" depends="check-dojo-installed" 
unless="already.installed">
+        <mkdir dir="${basedir}/target/dojo-download/"/>
+        <get 
src="http://download.dojotoolkit.org/release-${dojo.version}/dojo-release-${dojo.version}.zip";
+            
dest="${basedir}/target/dojo-download/dojo-release-${dojo.version}.zip"
+            verbose="true"
+            usetimestamp="true"/>
+        <copy 
file="${basedir}/target/dojo-download/dojo-release-${dojo.version}.zip" 
+              
tofile="${localRepository}/dojo/dojo/${dojo.version}/dojo-${dojo.version}.zip"/>
+    </target>
+       
+
+    <target name="unpack-dojo-files" depends="check-dojo-installed, 
check-dojo-unpacked" unless="already.unpacked">
+        <fail message="dojo zip file not installed in local repository: 
${localRepository}" unless="already.installed"/>
+        <mkdir dir="${basedir}/target/dojo-unpack-temp/"/>
+        <unzip 
src="${localRepository}/dojo/dojo/${dojo.version}/dojo-${dojo.version}.zip"
+               dest="${basedir}/target/dojo-unpack-temp/"
+               overwrite="false">
+            <patternset>
+                <include name="dojo-release-${dojo.version}/dojo/**"/>
+                <exclude name="dojo-release-${dojo.version}/dojo/tests/**"/>
+                <include name="dojo-release-${dojo.version}/dijit/**"/>
+                <exclude name="dojo-release-${dojo.version}/dojox/**"/>
+                <exclude name="dojo-release-${dojo.version}/util/**"/>
+            </patternset>
+        </unzip>
+        <move 
file="${basedir}/target/dojo-unpack-temp/dojo-release-${dojo.version}"
+              tofile="${unpack.location}"
+              verbose="true"/>
+        <delete dir="${basedir}/target/dojo-unpack-temp/"/>
+    </target>
+       
+
+    <target name="clean-dojo-files">
+        <delete dir="${unpack.location}"/>
+    </target>
+</project>

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/build-dojo.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/build-dojo.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/build-dojo.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/pom.xml
URL: 
http://svn.apache.org/viewvc/tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/pom.xml?rev=821945&view=auto
==============================================================================
--- tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/pom.xml (added)
+++ tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/pom.xml Mon Oct 
 5 18:05:09 2009
@@ -0,0 +1,180 @@
+<?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-sca</artifactId>
+        <version>2.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+    <artifactId>store-appengine-webapp</artifactId>
+    <packaging>war</packaging>
+    <name>Apache Tuscany Store</name>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-sca-api</artifactId>
+            <version>2.0-SNAPSHOT</version>
+        </dependency>
+
+      <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-implementation-java-runtime</artifactId>
+            <version>2.0-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency>
+        
+      <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-binding-jsonrpc-runtime</artifactId>
+            <version>2.0-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-host-webapp</artifactId>
+            <version>2.0-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency>                            
+        
+        <dependency>
+            <groupId>javax.servlet</groupId>
+            <artifactId>servlet-api</artifactId>
+            <version>2.5</version>
+            <scope>provided</scope>
+        </dependency>
+    </dependencies>
+    
+    <build>
+       <finalName>${artifactId}</finalName>
+       <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-eclipse-plugin</artifactId>
+                <configuration>
+                    <projectnatures>
+                        
<projectnature>org.eclipse.jdt.core.javanature</projectnature>
+                        
<projectnature>com.google.appengine.eclipse.core.gaeNature</projectnature>
+                        
<projectnature>com.google.gdt.eclipse.core.webAppNature</projectnature>
+                    </projectnatures>
+                    <buildcommands>
+                        
<buildCommand>org.eclipse.jdt.core.javabuilder</buildCommand>
+                        
<buildCommand>com.google.appengine.eclipse.core.enhancerbuilder</buildCommand>
+                        
<buildCommand>com.google.appengine.eclipse.core.projectValidator> 
</buildCommand>
+                        
<buildCommand>com.google.gdt.eclipse.core.webAppProjectValidator> 
</buildCommand>
+                    </buildcommands>
+                    <classpathContainers>
+                        
<classpathContainer>org.eclipse.jdt.launching.JRE_CONTAINER</classpathContainer>
+                        
<classpathContainer>com.google.appengine.eclipse.core.GAE_CONTAINER</classpathContainer>
+                    </classpathContainers>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <!-- version>1.1</version --> 
+                           <dependencies>
+                               <dependency>
+                                   <groupId>ant</groupId>
+                                   <artifactId>ant-trax</artifactId>
+                                   <version>1.6.5</version>
+                               </dependency>
+                           </dependencies>                    
+                <executions>
+                    <execution> 
+                        <id>install-dojo</id>                       
+                        <phase>validate</phase>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <configuration>
+                            <tasks>
+                                <ant antfile="./build-dojo.xml" 
target="install-dojo">
+                                    <property name="localRepository" 
value="${settings.localRepository}"/>
+                                </ant>
+                            </tasks>
+                        </configuration>
+                    </execution>
+                    <execution> 
+                        <id>copy-dojo-files</id>                       
+                        <phase>generate-resources</phase>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <configuration>
+                            <tasks>
+                                <ant antfile="./build-dojo.xml" 
target="unpack-dojo-files">
+                                    <property name="localRepository" 
value="${settings.localRepository}"/>
+                                    <property name="artifactId" 
value="${artifactId}"/>
+                                </ant>
+                            </tasks>
+                        </configuration>
+                    </execution>
+                    <execution> 
+                        <id>clean-dojo-files</id>                       
+                        <phase>clean</phase>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <configuration>
+                            <tasks>
+                                <ant antfile="./build-dojo.xml" 
target="clean-dojo-files">
+                                    <property name="localRepository" 
value="${settings.localRepository}"/>
+                                    <property name="artifactId" 
value="${artifactId}"/>
+                                </ant>
+                            </tasks>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin> 
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-dependency-plugin</artifactId>
+                <version>2.1</version>
+                <executions>
+                    <execution>
+                        <id>copy-dependencies</id>
+                        <phase>process-sources</phase>
+                        <goals>
+                            <goal>copy-dependencies</goal>
+                        </goals>
+                        <configuration>
+                            <outputDirectory>war/WEB-INF/lib</outputDirectory>
+                            <overWriteIfNewer>true</overWriteIfNewer>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-war-plugin</artifactId>
+                <version>2.1-beta-1</version>
+                <configuration>
+                    <warSourceDirectory>war</warSourceDirectory>
+                </configuration>
+            </plugin>
+        </plugins>       
+    </build>
+
+</project>

Propchange: tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/log4j.properties
URL: 
http://svn.apache.org/viewvc/tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/log4j.properties?rev=821945&view=auto
==============================================================================
--- 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/log4j.properties
 (added)
+++ 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/log4j.properties
 Mon Oct  5 18:05:09 2009
@@ -0,0 +1,25 @@
+# A default log4j configuration for log4j users.
+#
+# To use this configuration, deploy it into your application's WEB-INF/classes
+# directory.  You are also encouraged to edit it as you like.
+
+# Configure the console as our one appender
+log4j.appender.A1=org.apache.log4j.ConsoleAppender
+log4j.appender.A1.layout=org.apache.log4j.PatternLayout
+log4j.appender.A1.layout.ConversionPattern=%d{HH:mm:ss,SSS} %-5p [%c] - %m%n
+
+# tighten logging on the DataNucleus Categories
+log4j.category.DataNucleus.JDO=WARN, A1
+log4j.category.DataNucleus.Persistence=WARN, A1
+log4j.category.DataNucleus.Cache=WARN, A1
+log4j.category.DataNucleus.MetaData=WARN, A1
+log4j.category.DataNucleus.General=WARN, A1
+log4j.category.DataNucleus.Utility=WARN, A1
+log4j.category.DataNucleus.Transaction=WARN, A1
+log4j.category.DataNucleus.Datastore=WARN, A1
+log4j.category.DataNucleus.ClassLoading=WARN, A1
+log4j.category.DataNucleus.Plugin=WARN, A1
+log4j.category.DataNucleus.ValueGeneration=WARN, A1
+log4j.category.DataNucleus.Enhancer=WARN, A1
+log4j.category.DataNucleus.SchemaTool=WARN, A1
+log4j.category.org.apache.tuscany=ALL,A1

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/log4j.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/log4j.properties
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/log4j.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/Catalog.java
URL: 
http://svn.apache.org/viewvc/tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/Catalog.java?rev=821945&view=auto
==============================================================================
--- 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/Catalog.java
 (added)
+++ 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/Catalog.java
 Mon Oct  5 18:05:09 2009
@@ -0,0 +1,5 @@
+package services;
+
+public interface Catalog {
+       Item[] get();
+}

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/Catalog.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/Catalog.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/CatalogAggregatorImpl.java
URL: 
http://svn.apache.org/viewvc/tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/CatalogAggregatorImpl.java?rev=821945&view=auto
==============================================================================
--- 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/CatalogAggregatorImpl.java
 (added)
+++ 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/CatalogAggregatorImpl.java
 Mon Oct  5 18:05:09 2009
@@ -0,0 +1,56 @@
+/*
+ * 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;
+
+import org.oasisopen.sca.annotation.Property;
+import org.oasisopen.sca.annotation.Reference;
+import org.oasisopen.sca.annotation.Scope;
+import org.oasisopen.sca.annotation.Service;
+
+...@service(Catalog.class)
+...@scope("COMPOSITE")
+public class CatalogAggregatorImpl implements Catalog {
+
+    @Property
+    public String currencyCode = "USD";
+
+    @Reference
+    public CurrencyConverter currencyConverter;
+
+    @Reference
+    public Catalog fruitsCatalog;
+
+    public Item[] get() {
+        String currencySymbol = 
currencyConverter.getCurrencySymbol(currencyCode);
+
+        Item[] fruits = fruitsCatalog.get();
+
+        Item[] catalog = new Item[fruits.length];
+        int i =0;
+        for (Item item: fruits) {
+            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: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/CatalogAggregatorImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/CatalogAggregatorImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/CurrencyConverter.java
URL: 
http://svn.apache.org/viewvc/tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/CurrencyConverter.java?rev=821945&view=auto
==============================================================================
--- 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/CurrencyConverter.java
 (added)
+++ 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/CurrencyConverter.java
 Mon Oct  5 18:05:09 2009
@@ -0,0 +1,9 @@
+package services;
+
+public interface CurrencyConverter {
+    public double getConversion(String fromCurrenycCode, 
+                                String toCurrencyCode, 
+                                double amount);
+
+    public String getCurrencySymbol(String currencyCode);
+}

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/CurrencyConverter.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/CurrencyConverter.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/CurrencyConverterImpl.java
URL: 
http://svn.apache.org/viewvc/tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/CurrencyConverterImpl.java?rev=821945&view=auto
==============================================================================
--- 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/CurrencyConverterImpl.java
 (added)
+++ 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/CurrencyConverterImpl.java
 Mon Oct  5 18:05:09 2009
@@ -0,0 +1,24 @@
+package services;
+
+import org.oasisopen.sca.annotation.Service;
+
+...@service(CurrencyConverter.class)
+public class CurrencyConverterImpl implements CurrencyConverter {
+    public double getConversion(String fromCurrencyCode, 
+                                String toCurrencyCode, 
+                                double amount) {
+        if (toCurrencyCode.equals("USD"))
+            return amount;
+        else if (toCurrencyCode.equals("EUR"))
+            return ((double)Math.round(amount * 0.7256 * 100)) /100;
+        return 0;
+    }
+
+    public String getCurrencySymbol(String currencyCode) {
+        if (currencyCode.equals("USD"))
+            return "$";
+        else if (currencyCode.equals("EUR"))
+            return "E"; //"€";
+        return "?";
+    }
+}

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/CurrencyConverterImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/CurrencyConverterImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/Item.java
URL: 
http://svn.apache.org/viewvc/tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/Item.java?rev=821945&view=auto
==============================================================================
--- 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/Item.java
 (added)
+++ 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/Item.java
 Mon Oct  5 18:05:09 2009
@@ -0,0 +1,34 @@
+package services;
+
+import java.io.Serializable;
+
+public class Item implements Serializable {
+    private static final long serialVersionUID = -5847326138627338217L;
+
+    private String name;
+    private String price;
+
+    public Item() {
+    }
+
+    public Item(String name, String price) {
+        this.name = name;
+        this.price = price;
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    public String getPrice() {
+        return price;
+    }
+
+    public void setPrice(String price) {
+        this.price = price;
+    }
+}

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/Item.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/Item.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/store.composite
URL: 
http://svn.apache.org/viewvc/tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/store.composite?rev=821945&view=auto
==============================================================================
--- 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/store.composite 
(added)
+++ 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/store.composite 
Mon Oct  5 18:05:09 2009
@@ -0,0 +1,46 @@
+<?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://docs.oasis-open.org/ns/opencsa/sca/200903";
+           xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.1";
+              xmlns:s="http://store"; 
+              targetNamespace="http://store"; 
+              name="catalog">
+               
+       <component name="CatalogAggregator">
+               <implementation.java class="services.CatalogAggregatorImpl"/>
+               <property name="currencyCode">USD</property>
+               <service name="Catalog">
+                   <interface.java interface="services.Catalog"/>
+                       <tuscany:binding.jsonrpc uri="/catalogAggregator"/>
+               </service>
+               <reference name="fruitsCatalog">
+                   <interface.java interface="services.Catalog"/>
+                       <tuscany:binding.jsonrpc 
uri="http://tuscany-store-catalog.appspot.com/catalog"/>
+               </reference>
+               <reference name="currencyConverter" target="CurrencyConverter" 
/>
+       </component>
+
+       <component name="CurrencyConverter">
+               <implementation.java class="services.CurrencyConverterImpl" />
+               <service name="CurrencyConverter">
+                       <interface.java interface="services.CurrencyConverter"/>
+               </service>
+       </component>
+</composite>

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/store.composite
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/store.composite
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/src/store.composite
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/META-INF/sca-contribution.xml
URL: 
http://svn.apache.org/viewvc/tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/META-INF/sca-contribution.xml?rev=821945&view=auto
==============================================================================
--- 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/META-INF/sca-contribution.xml
 (added)
+++ 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/META-INF/sca-contribution.xml
 Mon Oct  5 18:05:09 2009
@@ -0,0 +1,24 @@
+<?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://docs.oasis-open.org/ns/opencsa/sca/200903";
+              xmlns:store="http://store";>
+              
+      <deployable composite="store:catalog"/>
+</contribution>
\ No newline at end of file

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/META-INF/sca-contribution.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/META-INF/sca-contribution.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/META-INF/sca-contribution.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/appengine-web.xml
URL: 
http://svn.apache.org/viewvc/tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/appengine-web.xml?rev=821945&view=auto
==============================================================================
--- 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/appengine-web.xml
 (added)
+++ 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/appengine-web.xml
 Mon Oct  5 18:05:09 2009
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<appengine-web-app xmlns="http://appengine.google.com/ns/1.0";>
+       <application>tuscany-store</application>
+       <version>1</version>
+       
+       <!-- Configure java.util.logging -->
+       <system-properties>
+               <property name="java.util.logging.config.file" 
value="WEB-INF/logging.properties"/>
+       </system-properties>
+       
+</appengine-web-app>
\ No newline at end of file

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/appengine-web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/appengine-web.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/appengine-web.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/classes/log4j.properties
URL: 
http://svn.apache.org/viewvc/tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/classes/log4j.properties?rev=821945&view=auto
==============================================================================
--- 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/classes/log4j.properties
 (added)
+++ 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/classes/log4j.properties
 Mon Oct  5 18:05:09 2009
@@ -0,0 +1,25 @@
+# A default log4j configuration for log4j users.
+#
+# To use this configuration, deploy it into your application's WEB-INF/classes
+# directory.  You are also encouraged to edit it as you like.
+
+# Configure the console as our one appender
+log4j.appender.A1=org.apache.log4j.ConsoleAppender
+log4j.appender.A1.layout=org.apache.log4j.PatternLayout
+log4j.appender.A1.layout.ConversionPattern=%d{HH:mm:ss,SSS} %-5p [%c] - %m%n
+
+# tighten logging on the DataNucleus Categories
+log4j.category.DataNucleus.JDO=WARN, A1
+log4j.category.DataNucleus.Persistence=WARN, A1
+log4j.category.DataNucleus.Cache=WARN, A1
+log4j.category.DataNucleus.MetaData=WARN, A1
+log4j.category.DataNucleus.General=WARN, A1
+log4j.category.DataNucleus.Utility=WARN, A1
+log4j.category.DataNucleus.Transaction=WARN, A1
+log4j.category.DataNucleus.Datastore=WARN, A1
+log4j.category.DataNucleus.ClassLoading=WARN, A1
+log4j.category.DataNucleus.Plugin=WARN, A1
+log4j.category.DataNucleus.ValueGeneration=WARN, A1
+log4j.category.DataNucleus.Enhancer=WARN, A1
+log4j.category.DataNucleus.SchemaTool=WARN, A1
+log4j.category.org.apache.tuscany=ALL,A1

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/classes/log4j.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/classes/log4j.properties
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/classes/log4j.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/classes/services/Catalog.class
URL: 
http://svn.apache.org/viewvc/tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/classes/services/Catalog.class?rev=821945&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/classes/services/Catalog.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/classes/services/CatalogAggregatorImpl.class
URL: 
http://svn.apache.org/viewvc/tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/classes/services/CatalogAggregatorImpl.class?rev=821945&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/classes/services/CatalogAggregatorImpl.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/classes/services/CurrencyConverter.class
URL: 
http://svn.apache.org/viewvc/tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/classes/services/CurrencyConverter.class?rev=821945&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/classes/services/CurrencyConverter.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/classes/services/CurrencyConverterImpl.class
URL: 
http://svn.apache.org/viewvc/tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/classes/services/CurrencyConverterImpl.class?rev=821945&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/classes/services/CurrencyConverterImpl.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/classes/services/Item.class
URL: 
http://svn.apache.org/viewvc/tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/classes/services/Item.class?rev=821945&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/classes/services/Item.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/classes/store.composite
URL: 
http://svn.apache.org/viewvc/tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/classes/store.composite?rev=821945&view=auto
==============================================================================
--- 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/classes/store.composite
 (added)
+++ 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/classes/store.composite
 Mon Oct  5 18:05:09 2009
@@ -0,0 +1,46 @@
+<?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://docs.oasis-open.org/ns/opencsa/sca/200903";
+           xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.1";
+              xmlns:s="http://store"; 
+              targetNamespace="http://store"; 
+              name="catalog">
+               
+       <component name="CatalogAggregator">
+               <implementation.java class="services.CatalogAggregatorImpl"/>
+               <property name="currencyCode">USD</property>
+               <service name="Catalog">
+                   <interface.java interface="services.Catalog"/>
+                       <tuscany:binding.jsonrpc uri="/catalogAggregator"/>
+               </service>
+               <reference name="fruitsCatalog">
+                   <interface.java interface="services.Catalog"/>
+                       <tuscany:binding.jsonrpc 
uri="http://tuscany-store-catalog.appspot.com/catalog"/>
+               </reference>
+               <reference name="currencyConverter" target="CurrencyConverter" 
/>
+       </component>
+
+       <component name="CurrencyConverter">
+               <implementation.java class="services.CurrencyConverterImpl" />
+               <service name="CurrencyConverter">
+                       <interface.java interface="services.CurrencyConverter"/>
+               </service>
+       </component>
+</composite>

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/classes/store.composite
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/classes/store.composite
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/classes/store.composite
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/logging.properties
URL: 
http://svn.apache.org/viewvc/tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/logging.properties?rev=821945&view=auto
==============================================================================
--- 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/logging.properties
 (added)
+++ 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/logging.properties
 Mon Oct  5 18:05:09 2009
@@ -0,0 +1,29 @@
+# A default java.util.logging configuration.
+# (All App Engine logging is through java.util.logging by default).
+#
+# To use this configuration, copy it into your application's WEB-INF
+# folder and add the following to your appengine-web.xml:
+# 
+# <system-properties>
+#   <property name="java.util.logging.config.file" 
value="WEB-INF/logging.properties"/>
+# </system-properties>
+#
+
+# Set the default logging level for all loggers to WARNING
+.level = WARNING
+
+# Set the default logging level for ORM, specifically, to WARNING
+DataNucleus.JDO.level=WARNING
+DataNucleus.Persistence.level=WARNING
+DataNucleus.Cache.level=WARNING
+DataNucleus.MetaData.level=WARNING
+DataNucleus.General.level=WARNING
+DataNucleus.Utility.level=WARNING
+DataNucleus.Transaction.level=WARNING
+DataNucleus.Datastore.level=WARNING
+DataNucleus.ClassLoading.level=WARNING
+DataNucleus.Plugin.level=WARNING
+DataNucleus.ValueGeneration.level=WARNING
+DataNucleus.Enhancer.level=WARNING
+DataNucleus.SchemaTool.level=WARNING
+log4j.category.org.apache.tuscany=ALL,A1

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/logging.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/logging.properties
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/logging.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/web.xml
URL: 
http://svn.apache.org/viewvc/tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/web.xml?rev=821945&view=auto
==============================================================================
--- 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/web.xml 
(added)
+++ 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/web.xml 
Mon Oct  5 18:05:09 2009
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE web-app
+    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+    "http://java.sun.com/dtd/web-app_2_3.dtd";>
+
+<web-app>
+
+       <!-- Tuscany Filter -->
+       <filter>
+               <filter-name>tuscany</filter-name>
+               
<filter-class>org.apache.tuscany.sca.host.webapp.TuscanyServletFilter</filter-class>
+       </filter>
+
+       <filter-mapping>
+               <filter-name>tuscany</filter-name>
+               <url-pattern>/*</url-pattern>
+       </filter-mapping>
+
+       <!-- Default page to serve -->
+       <welcome-file-list>
+               <welcome-file>store.html</welcome-file>
+       </welcome-file-list>
+
+</web-app>

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/store.html
URL: 
http://svn.apache.org/viewvc/tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/store.html?rev=821945&view=auto
==============================================================================
--- tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/store.html 
(added)
+++ tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/store.html 
Mon Oct  5 18:05:09 2009
@@ -0,0 +1,49 @@
+<html>
+<head>
+<title>Store</title>
+
+<script type="text/javascript" src="dojo/dojo/dojo.js"></script>
+
+<script type="text/javascript">
+       dojo.require("dojo.rpc.JsonService");
+</script>
+
+<script language="JavaScript">
+
+       var catalog = new dojo.rpc.JsonService("/catalogAggregator?smd");
+       
+       var catalogItems;
+
+       function catalog_getResponse(items) {
+               var catalog = "";
+               for (var i=0; i<items.length; i++) {
+                       var item = items[i].name + ' - ' + items[i].price;
+                       catalog += '<input name="items" type="checkbox" 
value="' + 
+                                               item + '">' + item + ' <br>';
+               }
+               document.getElementById('catalog').innerHTML=catalog;
+               catalogItems = items;
+       }
+
+       dojo.addOnUnload(function(){
+           catalog.get().addCallback(catalog_getResponse);
+    });
+
+       
+</script>
+
+</head>
+
+<body>
+<h1>Store</h1>
+  <div id="store">
+       <h2>Catalog</h2>
+       <form name="catalogForm">
+               <div id="catalog" ></div>
+               <br>
+       </form>
+ 
+       <br>    
+  </div>
+</body>
+</html>

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/store.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/store.html
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: 
tuscany/sandbox/lresende/sca/samples/store-appengine-webapp/war/store.html
------------------------------------------------------------------------------
    svn:mime-type = text/html


Reply via email to