From 93815891615a5aa48d5b11e7b3902d077222bd30 Mon Sep 17 00:00:00 2001 From: lresende Date: Fri, 16 Oct 2009 02:35:16 +0000 Subject: Committing minor local changes to allow moving the location of the project git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@825741 13f79535-47bb-0310-9956-ffa450edef68 --- .../sca/samples/store-appengine-webapp/src/log4j.properties | 2 ++ .../samples/store-appengine-webapp/src/services/Catalog.java | 3 +++ .../src/services/CurrencyConverter.java | 3 +++ .../store-appengine-webapp/war/WEB-INF/logging.properties | 5 ++++- .../sca/samples/store-appengine-webapp/war/store.html | 12 ++++++++---- 5 files changed, 20 insertions(+), 5 deletions(-) (limited to 'sandbox/lresende') diff --git a/sandbox/lresende/sca/samples/store-appengine-webapp/src/log4j.properties b/sandbox/lresende/sca/samples/store-appengine-webapp/src/log4j.properties index c704d6adee..f98cabf1b8 100644 --- a/sandbox/lresende/sca/samples/store-appengine-webapp/src/log4j.properties +++ b/sandbox/lresende/sca/samples/store-appengine-webapp/src/log4j.properties @@ -22,4 +22,6 @@ log4j.category.DataNucleus.Plugin=WARN, A1 log4j.category.DataNucleus.ValueGeneration=WARN, A1 log4j.category.DataNucleus.Enhancer=WARN, A1 log4j.category.DataNucleus.SchemaTool=WARN, A1 + +#tuscany debug messages log4j.category.org.apache.tuscany=ALL,A1 diff --git a/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/Catalog.java b/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/Catalog.java index 5d217e2168..2ecf9ae855 100644 --- a/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/Catalog.java +++ b/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/Catalog.java @@ -1,5 +1,8 @@ package services; +import org.oasisopen.sca.annotation.Remotable; + +@Remotable public interface Catalog { Item[] get(); } diff --git a/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/CurrencyConverter.java b/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/CurrencyConverter.java index 36d64781da..07a152a276 100644 --- a/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/CurrencyConverter.java +++ b/sandbox/lresende/sca/samples/store-appengine-webapp/src/services/CurrencyConverter.java @@ -1,5 +1,8 @@ package services; +import org.oasisopen.sca.annotation.Remotable; + +@Remotable public interface CurrencyConverter { public double getConversion(String fromCurrenycCode, String toCurrencyCode, diff --git a/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/logging.properties b/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/logging.properties index 1479043d2b..411c7f2003 100644 --- a/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/logging.properties +++ b/sandbox/lresende/sca/samples/store-appengine-webapp/war/WEB-INF/logging.properties @@ -26,4 +26,7 @@ DataNucleus.Plugin.level=WARNING DataNucleus.ValueGeneration.level=WARNING DataNucleus.Enhancer.level=WARNING DataNucleus.SchemaTool.level=WARNING -log4j.category.org.apache.tuscany=ALL,A1 + +#tuscany debug messages +org.apache.tuscany.level=WARNING + diff --git a/sandbox/lresende/sca/samples/store-appengine-webapp/war/store.html b/sandbox/lresende/sca/samples/store-appengine-webapp/war/store.html index 237d5eb1b4..cd9cff53a9 100644 --- a/sandbox/lresende/sca/samples/store-appengine-webapp/war/store.html +++ b/sandbox/lresende/sca/samples/store-appengine-webapp/war/store.html @@ -25,16 +25,20 @@ catalogItems = items; } - dojo.addOnUnload(function(){ - catalog.get().addCallback(catalog_getResponse); - }); + function init() { + try { + catalog.get().addCallback(catalog_getResponse); + } catch (e) { + alert(e); + } + } - +

Store

Catalog

-- cgit v1.2.3