diff options
author | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-10-16 02:35:16 +0000 |
---|---|---|
committer | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-10-16 02:35:16 +0000 |
commit | 93815891615a5aa48d5b11e7b3902d077222bd30 (patch) | |
tree | 6364b46cb1108803164311907ed13c296595a61f /sandbox/lresende/sca/samples | |
parent | 508fa6f8778f9f7d803eb76b6e664314df5a5abe (diff) |
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
Diffstat (limited to 'sandbox/lresende/sca/samples')
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> |