From 19f44a0ad09b20360714b68ec4f7376a58ee3fb6 Mon Sep 17 00:00:00 2001 From: lresende Date: Mon, 5 Oct 2009 18:00:22 +0000 Subject: Tuscany store scenario running on appengine - Catalog service exposed as JSON-RPC binding git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@821943 13f79535-47bb-0310-9956-ffa450edef68 --- .../store-catalog-appengine-webapp/.classpath | 9 ++ ...e.appengine.eclipse.core.enhancerbuilder.launch | 7 ++ .../store-catalog-appengine-webapp/.project | 39 +++++++ .../com.google.appengine.eclipse.core.prefs | 5 + .../.settings/com.google.gdt.eclipse.core.prefs | 3 + .../.settings/com.google.gwt.eclipse.core.prefs | 3 + .../samples/store-catalog-appengine-webapp/pom.xml | 122 +++++++++++++++++++++ .../src/catalog.composite | 42 +++++++ .../src/log4j.properties | 25 +++++ .../src/services/Catalog.java | 5 + .../src/services/CurrencyConverter.java | 9 ++ .../src/services/CurrencyConverterImpl.java | 24 ++++ .../src/services/FruitsCatalogImpl.java | 38 +++++++ .../src/services/Item.java | 34 ++++++ .../war/META-INF/sca-contribution.xml | 24 ++++ .../war/WEB-INF/appengine-web.xml | 11 ++ .../war/WEB-INF/classes/catalog.composite | 42 +++++++ .../war/WEB-INF/classes/log4j.properties | 25 +++++ .../war/WEB-INF/classes/services/Catalog.class | Bin 0 -> 139 bytes .../classes/services/CurrencyConverter.class | Bin 0 -> 260 bytes .../classes/services/CurrencyConverterImpl.class | Bin 0 -> 1088 bytes .../classes/services/FruitsCatalogImpl.class | Bin 0 -> 2103 bytes .../war/WEB-INF/classes/services/Item.class | Bin 0 -> 931 bytes .../war/WEB-INF/logging.properties | 29 +++++ .../war/WEB-INF/web.xml | 24 ++++ .../store-catalog-appengine-webapp/war/index.html | 14 +++ 26 files changed, 534 insertions(+) create mode 100644 sandbox/lresende/sca/samples/store-catalog-appengine-webapp/.classpath create mode 100644 sandbox/lresende/sca/samples/store-catalog-appengine-webapp/.externalToolBuilders/com.google.appengine.eclipse.core.enhancerbuilder.launch create mode 100644 sandbox/lresende/sca/samples/store-catalog-appengine-webapp/.project create mode 100644 sandbox/lresende/sca/samples/store-catalog-appengine-webapp/.settings/com.google.appengine.eclipse.core.prefs create mode 100644 sandbox/lresende/sca/samples/store-catalog-appengine-webapp/.settings/com.google.gdt.eclipse.core.prefs create mode 100644 sandbox/lresende/sca/samples/store-catalog-appengine-webapp/.settings/com.google.gwt.eclipse.core.prefs create mode 100644 sandbox/lresende/sca/samples/store-catalog-appengine-webapp/pom.xml create mode 100644 sandbox/lresende/sca/samples/store-catalog-appengine-webapp/src/catalog.composite create mode 100644 sandbox/lresende/sca/samples/store-catalog-appengine-webapp/src/log4j.properties create mode 100644 sandbox/lresende/sca/samples/store-catalog-appengine-webapp/src/services/Catalog.java create mode 100644 sandbox/lresende/sca/samples/store-catalog-appengine-webapp/src/services/CurrencyConverter.java create mode 100644 sandbox/lresende/sca/samples/store-catalog-appengine-webapp/src/services/CurrencyConverterImpl.java create mode 100644 sandbox/lresende/sca/samples/store-catalog-appengine-webapp/src/services/FruitsCatalogImpl.java create mode 100644 sandbox/lresende/sca/samples/store-catalog-appengine-webapp/src/services/Item.java create mode 100644 sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/META-INF/sca-contribution.xml create mode 100644 sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/appengine-web.xml create mode 100644 sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/classes/catalog.composite create mode 100644 sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/classes/log4j.properties create mode 100644 sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/classes/services/Catalog.class create mode 100644 sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/classes/services/CurrencyConverter.class create mode 100644 sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/classes/services/CurrencyConverterImpl.class create mode 100644 sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/classes/services/FruitsCatalogImpl.class create mode 100644 sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/classes/services/Item.class create mode 100644 sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/logging.properties create mode 100644 sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/web.xml create mode 100644 sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/index.html (limited to 'sandbox/lresende') diff --git a/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/.classpath b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/.classpath new file mode 100644 index 0000000000..ccc7355a00 --- /dev/null +++ b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/.classpath @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/.externalToolBuilders/com.google.appengine.eclipse.core.enhancerbuilder.launch b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/.externalToolBuilders/com.google.appengine.eclipse.core.enhancerbuilder.launch new file mode 100644 index 0000000000..f97b807c3b --- /dev/null +++ b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/.externalToolBuilders/com.google.appengine.eclipse.core.enhancerbuilder.launch @@ -0,0 +1,7 @@ + + + + + + + diff --git a/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/.project b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/.project new file mode 100644 index 0000000000..76941038d5 --- /dev/null +++ b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/.project @@ -0,0 +1,39 @@ + + + store-catalog-appengine-webapp + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.ui.externaltools.ExternalToolBuilder + full,incremental, + + + LaunchConfigHandle + <project>/.externalToolBuilders/com.google.appengine.eclipse.core.enhancerbuilder.launch + + + + + com.google.appengine.eclipse.core.projectValidator + + + + + com.google.gdt.eclipse.core.webAppProjectValidator + + + + + + org.eclipse.jdt.core.javanature + com.google.appengine.eclipse.core.gaeNature + com.google.gdt.eclipse.core.webAppNature + + diff --git a/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/.settings/com.google.appengine.eclipse.core.prefs b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/.settings/com.google.appengine.eclipse.core.prefs new file mode 100644 index 0000000000..3c74c572be --- /dev/null +++ b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/.settings/com.google.appengine.eclipse.core.prefs @@ -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= diff --git a/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/.settings/com.google.gdt.eclipse.core.prefs b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/.settings/com.google.gdt.eclipse.core.prefs new file mode 100644 index 0000000000..9fc852536a --- /dev/null +++ b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/.settings/com.google.gdt.eclipse.core.prefs @@ -0,0 +1,3 @@ +#Mon Sep 21 18:15:57 PDT 2009 +eclipse.preferences.version=1 +jarsExcludedFromWebInfLib= diff --git a/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/.settings/com.google.gwt.eclipse.core.prefs b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/.settings/com.google.gwt.eclipse.core.prefs new file mode 100644 index 0000000000..2d3aa6f07f --- /dev/null +++ b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/.settings/com.google.gwt.eclipse.core.prefs @@ -0,0 +1,3 @@ +#Mon Sep 21 18:15:57 PDT 2009 +eclipse.preferences.version=1 +filesCopiedToWebInfLib= diff --git a/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/pom.xml b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/pom.xml new file mode 100644 index 0000000000..4b7f493735 --- /dev/null +++ b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/pom.xml @@ -0,0 +1,122 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-sca + 2.0-SNAPSHOT + ../pom.xml + + store-catalog-appengine-webapp + war + Apache Tuscany Store Catalog Service + + + + org.apache.tuscany.sca + tuscany-sca-api + 2.0-SNAPSHOT + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 2.0-SNAPSHOT + runtime + + + + org.apache.tuscany.sca + tuscany-binding-jsonrpc-runtime + 2.0-SNAPSHOT + runtime + + + + org.apache.tuscany.sca + tuscany-host-webapp + 2.0-SNAPSHOT + runtime + + + + javax.servlet + servlet-api + 2.5 + provided + + + + + ${artifactId} + + + org.apache.maven.plugins + maven-eclipse-plugin + + + org.eclipse.jdt.core.javanature + com.google.appengine.eclipse.core.gaeNature + com.google.gdt.eclipse.core.webAppNature + + + org.eclipse.jdt.core.javabuilder + com.google.appengine.eclipse.core.enhancerbuilder + com.google.appengine.eclipse.core.projectValidator> + com.google.gdt.eclipse.core.webAppProjectValidator> + + + org.eclipse.jdt.launching.JRE_CONTAINER + com.google.appengine.eclipse.core.GAE_CONTAINER + + + + + org.apache.maven.plugins + maven-dependency-plugin + 2.1 + + + copy-dependencies + process-sources + + copy-dependencies + + + war/WEB-INF/lib + true + + + + + + + org.apache.maven.plugins + maven-war-plugin + 2.1-beta-1 + + war + + + + + + diff --git a/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/src/catalog.composite b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/src/catalog.composite new file mode 100644 index 0000000000..94856e18de --- /dev/null +++ b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/src/catalog.composite @@ -0,0 +1,42 @@ + + + + + + + USD + + + + + + + + + + + + + + diff --git a/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/src/log4j.properties b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/src/log4j.properties new file mode 100644 index 0000000000..c704d6adee --- /dev/null +++ b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/src/log4j.properties @@ -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 diff --git a/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/src/services/Catalog.java b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/src/services/Catalog.java new file mode 100644 index 0000000000..5d217e2168 --- /dev/null +++ b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/src/services/Catalog.java @@ -0,0 +1,5 @@ +package services; + +public interface Catalog { + Item[] get(); +} diff --git a/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/src/services/CurrencyConverter.java b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/src/services/CurrencyConverter.java new file mode 100644 index 0000000000..36d64781da --- /dev/null +++ b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/src/services/CurrencyConverter.java @@ -0,0 +1,9 @@ +package services; + +public interface CurrencyConverter { + public double getConversion(String fromCurrenycCode, + String toCurrencyCode, + double amount); + + public String getCurrencySymbol(String currencyCode); +} diff --git a/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/src/services/CurrencyConverterImpl.java b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/src/services/CurrencyConverterImpl.java new file mode 100644 index 0000000000..7de3894e2e --- /dev/null +++ b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/src/services/CurrencyConverterImpl.java @@ -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 "?"; + } +} diff --git a/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/src/services/FruitsCatalogImpl.java b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/src/services/FruitsCatalogImpl.java new file mode 100644 index 0000000000..5290623487 --- /dev/null +++ b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/src/services/FruitsCatalogImpl.java @@ -0,0 +1,38 @@ +package services; + +import java.util.ArrayList; +import java.util.List; + +import org.oasisopen.sca.annotation.Init; +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 FruitsCatalogImpl implements Catalog { + @Property + public String currencyCode = "USD"; + @Reference + public CurrencyConverter currencyConverter; + + private List catalog = new ArrayList(); + + @Init + public void init() { + String currencySymbol = currencyConverter.getCurrencySymbol(currencyCode); + catalog.add(new Item("Apple", currencySymbol + + currencyConverter.getConversion("USD", currencyCode, 2.99))); + catalog.add(new Item("Orange", currencySymbol + + currencyConverter.getConversion("USD", currencyCode, 3.55))); + catalog.add(new Item("Pear", currencySymbol + + currencyConverter.getConversion("USD", currencyCode, 1.55))); + } + + public Item[] get() { + Item[] catalogArray = new Item[catalog.size()]; + catalog.toArray(catalogArray); + return catalogArray; + } +} diff --git a/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/src/services/Item.java b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/src/services/Item.java new file mode 100644 index 0000000000..65aaa53224 --- /dev/null +++ b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/src/services/Item.java @@ -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; + } +} diff --git a/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/META-INF/sca-contribution.xml b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..3fb1f2b1c7 --- /dev/null +++ b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/META-INF/sca-contribution.xml @@ -0,0 +1,24 @@ + + + + + + \ No newline at end of file diff --git a/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/appengine-web.xml b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/appengine-web.xml new file mode 100644 index 0000000000..167f7a4ce5 --- /dev/null +++ b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/appengine-web.xml @@ -0,0 +1,11 @@ + + + tuscany-store-catalog + 1 + + + + + + + \ No newline at end of file diff --git a/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/classes/catalog.composite b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/classes/catalog.composite new file mode 100644 index 0000000000..94856e18de --- /dev/null +++ b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/classes/catalog.composite @@ -0,0 +1,42 @@ + + + + + + + USD + + + + + + + + + + + + + + diff --git a/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/classes/log4j.properties b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/classes/log4j.properties new file mode 100644 index 0000000000..c704d6adee --- /dev/null +++ b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/classes/log4j.properties @@ -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 diff --git a/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/classes/services/Catalog.class b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/classes/services/Catalog.class new file mode 100644 index 0000000000..59527895a9 Binary files /dev/null and b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/classes/services/Catalog.class differ diff --git a/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/classes/services/CurrencyConverter.class b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/classes/services/CurrencyConverter.class new file mode 100644 index 0000000000..1c4c9d6236 Binary files /dev/null and b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/classes/services/CurrencyConverter.class differ diff --git a/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/classes/services/CurrencyConverterImpl.class b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/classes/services/CurrencyConverterImpl.class new file mode 100644 index 0000000000..665b7d2467 Binary files /dev/null and b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/classes/services/CurrencyConverterImpl.class differ diff --git a/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/classes/services/FruitsCatalogImpl.class b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/classes/services/FruitsCatalogImpl.class new file mode 100644 index 0000000000..1c21607947 Binary files /dev/null and b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/classes/services/FruitsCatalogImpl.class differ diff --git a/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/classes/services/Item.class b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/classes/services/Item.class new file mode 100644 index 0000000000..bd3b3cc27e Binary files /dev/null and b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/classes/services/Item.class differ diff --git a/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/logging.properties b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/logging.properties new file mode 100644 index 0000000000..1479043d2b --- /dev/null +++ b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/logging.properties @@ -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: +# +# +# +# +# + +# 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 diff --git a/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/web.xml b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/web.xml new file mode 100644 index 0000000000..ddfd262176 --- /dev/null +++ b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/WEB-INF/web.xml @@ -0,0 +1,24 @@ + + + + + + + + tuscany + org.apache.tuscany.sca.host.webapp.TuscanyServletFilter + + + + tuscany + /* + + + + + index.html + + + diff --git a/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/index.html b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/index.html new file mode 100644 index 0000000000..4c8c0289bd --- /dev/null +++ b/sandbox/lresende/sca/samples/store-catalog-appengine-webapp/war/index.html @@ -0,0 +1,14 @@ + + + + +Tuscany Store Scenario + + + +

Tuscany Store Catalog Service

+
+
+Catalog Service Definition available at : http://tuscany-store-catalog.appspot.com/catalog?smd + + \ No newline at end of file -- cgit v1.2.3