diff options
Diffstat (limited to 'sandbox/lresende')
5 files changed, 20 insertions, 5 deletions
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); + } + } </script> </head> -<body> +<body onload="init()"> <h1>Store</h1> <div id="store"> <h2>Catalog</h2> |