diff options
Diffstat (limited to '')
9 files changed, 125 insertions, 0 deletions
diff --git a/sandbox/lresende/sca/samples/expertise-rest-appengine-webapp/war/WEB-INF/appengine-web.xml b/sandbox/lresende/sca/samples/expertise-rest-appengine-webapp/war/WEB-INF/appengine-web.xml new file mode 100644 index 0000000000..42e4330edf --- /dev/null +++ b/sandbox/lresende/sca/samples/expertise-rest-appengine-webapp/war/WEB-INF/appengine-web.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<appengine-web-app xmlns="http://appengine.google.com/ns/1.0"> + <application>scaapps</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 diff --git a/sandbox/lresende/sca/samples/expertise-rest-appengine-webapp/war/WEB-INF/classes/log4j.properties b/sandbox/lresende/sca/samples/expertise-rest-appengine-webapp/war/WEB-INF/classes/log4j.properties new file mode 100644 index 0000000000..d9c3edc9fe --- /dev/null +++ b/sandbox/lresende/sca/samples/expertise-rest-appengine-webapp/war/WEB-INF/classes/log4j.properties @@ -0,0 +1,24 @@ +# 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 diff --git a/sandbox/lresende/sca/samples/expertise-rest-appengine-webapp/war/WEB-INF/classes/org/apache/tuscany/expertise/Expert.class b/sandbox/lresende/sca/samples/expertise-rest-appengine-webapp/war/WEB-INF/classes/org/apache/tuscany/expertise/Expert.class Binary files differnew file mode 100644 index 0000000000..b814e12956 --- /dev/null +++ b/sandbox/lresende/sca/samples/expertise-rest-appengine-webapp/war/WEB-INF/classes/org/apache/tuscany/expertise/Expert.class diff --git a/sandbox/lresende/sca/samples/expertise-rest-appengine-webapp/war/WEB-INF/classes/org/apache/tuscany/expertise/restfull/ExpertRegistry.class b/sandbox/lresende/sca/samples/expertise-rest-appengine-webapp/war/WEB-INF/classes/org/apache/tuscany/expertise/restfull/ExpertRegistry.class Binary files differnew file mode 100644 index 0000000000..9cb8566552 --- /dev/null +++ b/sandbox/lresende/sca/samples/expertise-rest-appengine-webapp/war/WEB-INF/classes/org/apache/tuscany/expertise/restfull/ExpertRegistry.class diff --git a/sandbox/lresende/sca/samples/expertise-rest-appengine-webapp/war/WEB-INF/classes/org/apache/tuscany/expertise/restfull/ExpertRegistryImpl.class b/sandbox/lresende/sca/samples/expertise-rest-appengine-webapp/war/WEB-INF/classes/org/apache/tuscany/expertise/restfull/ExpertRegistryImpl.class Binary files differnew file mode 100644 index 0000000000..2bbf290930 --- /dev/null +++ b/sandbox/lresende/sca/samples/expertise-rest-appengine-webapp/war/WEB-INF/classes/org/apache/tuscany/expertise/restfull/ExpertRegistryImpl.class diff --git a/sandbox/lresende/sca/samples/expertise-rest-appengine-webapp/war/WEB-INF/classes/org/apache/tuscany/expertise/restfull/RestfulExpertiseLocator.class b/sandbox/lresende/sca/samples/expertise-rest-appengine-webapp/war/WEB-INF/classes/org/apache/tuscany/expertise/restfull/RestfulExpertiseLocator.class Binary files differnew file mode 100644 index 0000000000..67f5ca9cc7 --- /dev/null +++ b/sandbox/lresende/sca/samples/expertise-rest-appengine-webapp/war/WEB-INF/classes/org/apache/tuscany/expertise/restfull/RestfulExpertiseLocator.class diff --git a/sandbox/lresende/sca/samples/expertise-rest-appengine-webapp/war/WEB-INF/classes/rest.composite b/sandbox/lresende/sca/samples/expertise-rest-appengine-webapp/war/WEB-INF/classes/rest.composite new file mode 100644 index 0000000000..9e32209a18 --- /dev/null +++ b/sandbox/lresende/sca/samples/expertise-rest-appengine-webapp/war/WEB-INF/classes/rest.composite @@ -0,0 +1,38 @@ +<?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" + targetNamespace="http://sample" + xmlns:s="http://sample" + name="rest" > + <component name="ExpertRegistryComponent"> + <implementation.java class="org.apache.tuscany.expertise.restfull.ExpertRegistryImpl"/> + <service name="ExpertRegistry"> + <interface.java interface="org.apache.tuscany.expertise.restfull.ExpertRegistry"/> + </service> + </component> + <component name="RestExpertiseLocatorComponent"> + <implementation.java class="org.apache.tuscany.expertise.restfull.RestfulExpertiseLocator"/> + <service name="Servlet"> + <tuscany:binding.http uri="/experts"/> + </service> + <reference name="experts" target="ExpertRegistryComponent"/> + </component> +</composite>
\ No newline at end of file diff --git a/sandbox/lresende/sca/samples/expertise-rest-appengine-webapp/war/WEB-INF/logging.properties b/sandbox/lresende/sca/samples/expertise-rest-appengine-webapp/war/WEB-INF/logging.properties new file mode 100644 index 0000000000..4a78b7f353 --- /dev/null +++ b/sandbox/lresende/sca/samples/expertise-rest-appengine-webapp/war/WEB-INF/logging.properties @@ -0,0 +1,28 @@ +# 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 diff --git a/sandbox/lresende/sca/samples/expertise-rest-appengine-webapp/war/WEB-INF/web.xml b/sandbox/lresende/sca/samples/expertise-rest-appengine-webapp/war/WEB-INF/web.xml new file mode 100644 index 0000000000..ddfd262176 --- /dev/null +++ b/sandbox/lresende/sca/samples/expertise-rest-appengine-webapp/war/WEB-INF/web.xml @@ -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>index.html</welcome-file> + </welcome-file-list> + +</web-app> |