From a3ce58076d0ce2d2f09c2331ea499554e9b5a9f9 Mon Sep 17 00:00:00 2001 From: lresende Date: Thu, 11 Sep 2008 04:13:16 +0000 Subject: Renaming branch git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@694108 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/sample/HelloworldService.java | 7 +++ .../main/java/sample/HelloworldServiceImpl.java | 12 +++++ .../webapp/META-INF/sca-deployables/web.composite | 39 ++++++++++++++ .../helloworld-web/src/main/webapp/WEB-INF/web.xml | 42 +++++++++++++++ .../helloworld-web/src/main/webapp/hello.html | 62 ++++++++++++++++++++++ 5 files changed, 162 insertions(+) create mode 100644 branches/sca-java-20080910/samples/helloworld-web/src/main/java/sample/HelloworldService.java create mode 100644 branches/sca-java-20080910/samples/helloworld-web/src/main/java/sample/HelloworldServiceImpl.java create mode 100644 branches/sca-java-20080910/samples/helloworld-web/src/main/webapp/META-INF/sca-deployables/web.composite create mode 100644 branches/sca-java-20080910/samples/helloworld-web/src/main/webapp/WEB-INF/web.xml create mode 100644 branches/sca-java-20080910/samples/helloworld-web/src/main/webapp/hello.html (limited to 'branches/sca-java-20080910/samples/helloworld-web/src') diff --git a/branches/sca-java-20080910/samples/helloworld-web/src/main/java/sample/HelloworldService.java b/branches/sca-java-20080910/samples/helloworld-web/src/main/java/sample/HelloworldService.java new file mode 100644 index 0000000000..2b92fd4661 --- /dev/null +++ b/branches/sca-java-20080910/samples/helloworld-web/src/main/java/sample/HelloworldService.java @@ -0,0 +1,7 @@ +package sample; + +public interface HelloworldService { + + String sayHello(String name); + +} diff --git a/branches/sca-java-20080910/samples/helloworld-web/src/main/java/sample/HelloworldServiceImpl.java b/branches/sca-java-20080910/samples/helloworld-web/src/main/java/sample/HelloworldServiceImpl.java new file mode 100644 index 0000000000..be83d3b407 --- /dev/null +++ b/branches/sca-java-20080910/samples/helloworld-web/src/main/java/sample/HelloworldServiceImpl.java @@ -0,0 +1,12 @@ +package sample; + +import org.osoa.sca.annotations.Service; + +@Service(HelloworldService.class) +public class HelloworldServiceImpl implements HelloworldService { + + public String sayHello(String name) { + return "Hello " + name; + } + +} diff --git a/branches/sca-java-20080910/samples/helloworld-web/src/main/webapp/META-INF/sca-deployables/web.composite b/branches/sca-java-20080910/samples/helloworld-web/src/main/webapp/META-INF/sca-deployables/web.composite new file mode 100644 index 0000000000..20cebc2d53 --- /dev/null +++ b/branches/sca-java-20080910/samples/helloworld-web/src/main/webapp/META-INF/sca-deployables/web.composite @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + diff --git a/branches/sca-java-20080910/samples/helloworld-web/src/main/webapp/WEB-INF/web.xml b/branches/sca-java-20080910/samples/helloworld-web/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000000..f29262a147 --- /dev/null +++ b/branches/sca-java-20080910/samples/helloworld-web/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,42 @@ + + + + + + Apache Tuscany Helloworld Servlet Sample + + + tuscany + org.apache.tuscany.sca.host.webapp.TuscanyServletFilter + + + + tuscany + /* + + + + hello.html + + + diff --git a/branches/sca-java-20080910/samples/helloworld-web/src/main/webapp/hello.html b/branches/sca-java-20080910/samples/helloworld-web/src/main/webapp/hello.html new file mode 100644 index 0000000000..83ac0ae576 --- /dev/null +++ b/branches/sca-java-20080910/samples/helloworld-web/src/main/webapp/hello.html @@ -0,0 +1,62 @@ + + + + + Apache Tuscany Helloworld Web Sample + + + + + + + +

Apache Tuscany Helloworld Web Sample

+ + + + + + + + + + + + +
Enter your name: + +
+ +
+
+
+ + + -- cgit v1.2.3