From 074cc3cff2f00457318bd322a6bd58f65686ae5c Mon Sep 17 00:00:00 2001 From: nash Date: Tue, 16 Nov 2010 10:40:14 +0000 Subject: Tag for 1.6.1-RC2 git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1035578 13f79535-47bb-0310-9956-ffa450edef68 --- .../pom.xml | 103 ++++++++++++++++ .../application/META-INF/application.composite | 48 ++++++++ .../ear-appcomp-contrib-implicit/pom.xml | 103 ++++++++++++++++ .../application/META-INF/application.composite | 62 ++++++++++ .../src/main/resources/isthisignored.composite | 49 ++++++++ .../ear-nonenhanced/pom.xml | 90 ++++++++++++++ .../ejb-appcomp-contrib-explicit/pom.xml | 68 +++++++++++ .../main/java/sample/ejb3/HelloworldService.java | 31 +++++ .../java/sample/ejb3/HelloworldServiceBean.java | 40 ++++++ .../src/main/resources/META-INF/ejb-jar.composite | 35 ++++++ .../src/main/resources/META-INF/openejb-jar.xml | 32 +++++ .../main/resources/META-INF/sca-contribution.xml | 22 ++++ .../ejb-appcomp-contrib-implicit/pom.xml | 68 +++++++++++ .../main/java/sample/ejb3/HelloworldService.java | 33 +++++ .../java/sample/ejb3/HelloworldServiceBean.java | 40 ++++++ .../src/main/resources/META-INF/ejb-jar.composite | 35 ++++++ .../src/main/resources/META-INF/openejb-jar.xml | 32 +++++ .../contribution-jee-samples/ejb-enhanced/pom.xml | 68 +++++++++++ .../main/java/sample/ejb3/HelloworldLocal8.java | 33 +++++ .../main/java/sample/ejb3/HelloworldService8.java | 33 +++++ .../java/sample/ejb3/HelloworldService8Bean.java | 50 ++++++++ .../src/main/resources/META-INF/openejb-jar.xml | 32 +++++ .../src/main/resources/isthisignored.composite | 49 ++++++++ .../ejb-nonenhanced/pom.xml | 68 +++++++++++ .../main/java/sample/ejb3/HelloworldLocal7.java | 33 +++++ .../main/java/sample/ejb3/HelloworldService7.java | 33 +++++ .../java/sample/ejb3/HelloworldService7Bean.java | 41 +++++++ .../java/sample/ejb3/HelloworldService7aBean.java | 41 +++++++ .../src/main/resources/META-INF/openejb-jar.xml | 32 +++++ .../contribution-jee-samples/jar-shared/pom.xml | 72 +++++++++++ .../java/sample/java/HelloworldServiceJava.java | 33 +++++ .../sample/java/HelloworldServiceJavaImpl.java | 36 ++++++ .../src/main/java/sample/java/JarMain.java | 24 ++++ .../itest/contribution-jee-samples/pom.xml | 60 +++++++++ .../sample-11-client/pom.xml | 72 +++++++++++ .../src/main/java/sample/HelloworldServlet.java | 72 +++++++++++ .../main/java/sample/ejb3/HelloworldService.java | 31 +++++ .../src/main/webapp/WEB-INF/geronimo-web.xml | 33 +++++ .../src/main/webapp/WEB-INF/web.composite | 34 ++++++ .../src/main/webapp/WEB-INF/web.xml | 41 +++++++ .../sample-11-client/src/main/webapp/hello.html | 46 +++++++ .../scajar-ear-appcomp-war-appcomp/pom.xml | 72 +++++++++++ .../main/java/sample/ejb3/HelloworldService.java | 33 +++++ .../java/sample/java/HelloworldServiceJava.java | 28 +++++ .../main/java/sample/pojo/HelloworldClient2.java | 25 ++++ .../java/sample/pojo/HelloworldClient2Impl.java | 39 ++++++ .../java/sample/pojo/HelloworldTargetImpl.java | 29 +++++ .../src/main/resources/helloworld.composite | 40 ++++++ .../scajar-ear-appcomp/pom.xml | 72 +++++++++++ .../main/java/sample/ejb3/HelloworldService.java | 33 +++++ .../java/sample/java/HelloworldServiceJava.java | 28 +++++ .../main/java/sample/pojo/HelloworldClient2.java | 25 ++++ .../java/sample/pojo/HelloworldClient2Impl.java | 39 ++++++ .../java/sample/pojo/HelloworldTargetImpl.java | 29 +++++ .../src/main/resources/helloworld.composite | 40 ++++++ .../scajar-ear-nonenhanced/pom.xml | 72 +++++++++++ .../main/java/sample/ejb3/HelloworldService.java | 33 +++++ .../main/java/sample/pojo/HelloworldClient.java | 25 ++++ .../java/sample/pojo/HelloworldClientImpl.java | 34 ++++++ .../src/main/resources/helloworld.composite | 34 ++++++ .../scajar-ejb-nonenhanced/pom.xml | 72 +++++++++++ .../main/java/sample/ejb3/HelloworldService.java | 33 +++++ .../main/java/sample/pojo/HelloworldClient.java | 25 ++++ .../java/sample/pojo/HelloworldClientImpl.java | 34 ++++++ .../src/main/resources/helloworld.composite | 34 ++++++ .../scazip-ejb-appcomp/build.xml | 24 ++++ .../scazip-ejb-appcomp/pom.xml | 135 ++++++++++++++++++++ .../main/java/sample/ejb3/HelloworldService.java | 33 +++++ .../main/java/sample/pojo/HelloworldClient.java | 25 ++++ .../java/sample/pojo/HelloworldClientImpl.java | 34 ++++++ .../src/main/resources/helloworld.composite | 34 ++++++ .../scazip-war-appcomp/build.xml | 24 ++++ .../scazip-war-appcomp/pom.xml | 136 +++++++++++++++++++++ .../main/java/sample/ejb3/HelloworldService.java | 33 +++++ .../main/java/sample/pojo/HelloworldClient.java | 25 ++++ .../java/sample/pojo/HelloworldClientImpl.java | 34 ++++++ .../src/main/resources/helloworld.composite | 29 +++++ .../war-appcomp-contrib-implicit/pom.xml | 66 ++++++++++ .../src/main/java/sample/HelloworldEjbServlet.java | 66 ++++++++++ .../main/java/sample/ejb3/HelloworldService.java | 33 +++++ .../src/main/webapp/WEB-INF/geronimo-web.xml | 49 ++++++++ .../src/main/webapp/WEB-INF/web.composite | 36 ++++++ .../src/main/webapp/WEB-INF/web.xml | 41 +++++++ .../src/main/webapp/hello.html | 50 ++++++++ .../war-nonenhanced/pom.xml | 66 ++++++++++ .../src/main/java/sample/HelloworldEjbServlet.java | 63 ++++++++++ .../main/java/sample/ejb3/HelloworldService.java | 33 +++++ .../src/main/webapp/WEB-INF/geronimo-web.xml | 49 ++++++++ .../src/main/webapp/WEB-INF/web.xml | 41 +++++++ .../war-nonenhanced/src/main/webapp/hello.html | 50 ++++++++ 90 files changed, 4095 insertions(+) create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ear-appcomp-contrib-implicit-war-appcomp/pom.xml create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ear-appcomp-contrib-implicit-war-appcomp/src/main/application/META-INF/application.composite create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ear-appcomp-contrib-implicit/pom.xml create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ear-appcomp-contrib-implicit/src/main/application/META-INF/application.composite create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ear-appcomp-contrib-implicit/src/main/resources/isthisignored.composite create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ear-nonenhanced/pom.xml create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-explicit/pom.xml create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-explicit/src/main/java/sample/ejb3/HelloworldService.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-explicit/src/main/java/sample/ejb3/HelloworldServiceBean.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-explicit/src/main/resources/META-INF/ejb-jar.composite create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-explicit/src/main/resources/META-INF/openejb-jar.xml create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-explicit/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/pom.xml create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/src/main/java/sample/ejb3/HelloworldService.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/src/main/java/sample/ejb3/HelloworldServiceBean.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/src/main/resources/META-INF/ejb-jar.composite create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/src/main/resources/META-INF/openejb-jar.xml create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-enhanced/pom.xml create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-enhanced/src/main/java/sample/ejb3/HelloworldLocal8.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-enhanced/src/main/java/sample/ejb3/HelloworldService8.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-enhanced/src/main/java/sample/ejb3/HelloworldService8Bean.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-enhanced/src/main/resources/META-INF/openejb-jar.xml create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-enhanced/src/main/resources/isthisignored.composite create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-nonenhanced/pom.xml create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-nonenhanced/src/main/java/sample/ejb3/HelloworldLocal7.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-nonenhanced/src/main/java/sample/ejb3/HelloworldService7.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-nonenhanced/src/main/java/sample/ejb3/HelloworldService7Bean.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-nonenhanced/src/main/java/sample/ejb3/HelloworldService7aBean.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-nonenhanced/src/main/resources/META-INF/openejb-jar.xml create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/jar-shared/pom.xml create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/jar-shared/src/main/java/sample/java/HelloworldServiceJava.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/jar-shared/src/main/java/sample/java/HelloworldServiceJavaImpl.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/jar-shared/src/main/java/sample/java/JarMain.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/pom.xml create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/sample-11-client/pom.xml create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/sample-11-client/src/main/java/sample/HelloworldServlet.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/sample-11-client/src/main/java/sample/ejb3/HelloworldService.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/sample-11-client/src/main/webapp/WEB-INF/geronimo-web.xml create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/sample-11-client/src/main/webapp/WEB-INF/web.composite create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/sample-11-client/src/main/webapp/WEB-INF/web.xml create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/sample-11-client/src/main/webapp/hello.html create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/pom.xml create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/ejb3/HelloworldService.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/java/HelloworldServiceJava.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/pojo/HelloworldClient2.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/pojo/HelloworldClient2Impl.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/pojo/HelloworldTargetImpl.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/resources/helloworld.composite create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp/pom.xml create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/ejb3/HelloworldService.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/java/HelloworldServiceJava.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/pojo/HelloworldClient2.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/pojo/HelloworldClient2Impl.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/pojo/HelloworldTargetImpl.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/resources/helloworld.composite create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-nonenhanced/pom.xml create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-nonenhanced/src/main/java/sample/ejb3/HelloworldService.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-nonenhanced/src/main/java/sample/pojo/HelloworldClient.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-nonenhanced/src/main/java/sample/pojo/HelloworldClientImpl.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-nonenhanced/src/main/resources/helloworld.composite create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ejb-nonenhanced/pom.xml create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ejb-nonenhanced/src/main/java/sample/ejb3/HelloworldService.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ejb-nonenhanced/src/main/java/sample/pojo/HelloworldClient.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ejb-nonenhanced/src/main/java/sample/pojo/HelloworldClientImpl.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ejb-nonenhanced/src/main/resources/helloworld.composite create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-ejb-appcomp/build.xml create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-ejb-appcomp/pom.xml create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-ejb-appcomp/src/main/java/sample/ejb3/HelloworldService.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-ejb-appcomp/src/main/java/sample/pojo/HelloworldClient.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-ejb-appcomp/src/main/java/sample/pojo/HelloworldClientImpl.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-ejb-appcomp/src/main/resources/helloworld.composite create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-war-appcomp/build.xml create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-war-appcomp/pom.xml create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-war-appcomp/src/main/java/sample/ejb3/HelloworldService.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-war-appcomp/src/main/java/sample/pojo/HelloworldClient.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-war-appcomp/src/main/java/sample/pojo/HelloworldClientImpl.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-war-appcomp/src/main/resources/helloworld.composite create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-appcomp-contrib-implicit/pom.xml create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/java/sample/HelloworldEjbServlet.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/java/sample/ejb3/HelloworldService.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/webapp/WEB-INF/geronimo-web.xml create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/webapp/WEB-INF/web.composite create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/webapp/WEB-INF/web.xml create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/webapp/hello.html create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-nonenhanced/pom.xml create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-nonenhanced/src/main/java/sample/HelloworldEjbServlet.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-nonenhanced/src/main/java/sample/ejb3/HelloworldService.java create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-nonenhanced/src/main/webapp/WEB-INF/geronimo-web.xml create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-nonenhanced/src/main/webapp/WEB-INF/web.xml create mode 100644 sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-nonenhanced/src/main/webapp/hello.html (limited to 'sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples') diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ear-appcomp-contrib-implicit-war-appcomp/pom.xml b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ear-appcomp-contrib-implicit-war-appcomp/pom.xml new file mode 100644 index 0000000000..5137fde96f --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ear-appcomp-contrib-implicit-war-appcomp/pom.xml @@ -0,0 +1,103 @@ + + + + + 4.0.0 + + org.apache.tuscany.sca + itest-contribution-jee-samples + 1.6.1 + ../pom.xml + + + itest-contribution-jee-samples-30-ear-appcomp-contrib-implicit-war-appcomp + Apache Tuscany SCA iTest Contribution Java EE Samples 30 + ear + + + + org.apache.tuscany.sca + tuscany-sca-api + 1.6.1 + provided + + + + org.apache.geronimo.specs + geronimo-ejb_3.0_spec + 1.0 + provided + + + + org.apache.tuscany.sca + itest-contribution-jee-samples-00-jar-shared + 1.6.1 + provided + + + + org.apache.tuscany.sca + itest-contribution-jee-samples-12-ejb-appcomp-contrib-implicit + 1.6.1 + ejb + provided + + + + org.apache.tuscany.sca + itest-contribution-jee-samples-06-war-appcomp-contrib-implicit + 1.6.1 + war + provided + + + + + + + + org.apache.maven.plugins + maven-ear-plugin + + + + org.apache.tuscany.sca + itest-contribution-jee-samples-00-jar-shared + true + / + + + org.apache.tuscany.sca + itest-contribution-jee-samples-12-ejb-appcomp-contrib-implicit + / + + + org.apache.tuscany.sca + itest-contribution-jee-samples-06-war-appcomp-contrib-implicit + / + + + + + + ${artifactId} + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ear-appcomp-contrib-implicit-war-appcomp/src/main/application/META-INF/application.composite b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ear-appcomp-contrib-implicit-war-appcomp/src/main/application/META-INF/application.composite new file mode 100644 index 0000000000..3b1555f567 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ear-appcomp-contrib-implicit-war-appcomp/src/main/application/META-INF/application.composite @@ -0,0 +1,48 @@ + + + + + + + + + + + + EJB + + + + + + + + + Java + + + + + + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ear-appcomp-contrib-implicit/pom.xml b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ear-appcomp-contrib-implicit/pom.xml new file mode 100644 index 0000000000..8c3c0ea8f9 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ear-appcomp-contrib-implicit/pom.xml @@ -0,0 +1,103 @@ + + + + + 4.0.0 + + org.apache.tuscany.sca + itest-contribution-jee-samples + 1.6.1 + ../pom.xml + + + itest-contribution-jee-samples-29-ear-appcomp-contrib-implicit + Apache Tuscany SCA iTest Contribution Java EE Samples 29 + ear + + + + org.apache.tuscany.sca + tuscany-sca-api + 1.6.1 + provided + + + + org.apache.geronimo.specs + geronimo-ejb_3.0_spec + 1.0 + provided + + + + org.apache.tuscany.sca + itest-contribution-jee-samples-00-jar-shared + 1.6.1 + provided + + + + org.apache.tuscany.sca + itest-contribution-jee-samples-08-ejb-enhanced + 1.6.1 + ejb + provided + + + + org.apache.tuscany.sca + itest-contribution-jee-samples-01-war-nonenhanced + 1.6.1 + war + provided + + + + + + + + org.apache.maven.plugins + maven-ear-plugin + + + + org.apache.tuscany.sca + itest-contribution-jee-samples-00-jar-shared + true + / + + + org.apache.tuscany.sca + itest-contribution-jee-samples-08-ejb-enhanced + / + + + org.apache.tuscany.sca + itest-contribution-jee-samples-01-war-nonenhanced + / + + + + + + ${artifactId} + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ear-appcomp-contrib-implicit/src/main/application/META-INF/application.composite b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ear-appcomp-contrib-implicit/src/main/application/META-INF/application.composite new file mode 100644 index 0000000000..b131d375b0 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ear-appcomp-contrib-implicit/src/main/application/META-INF/application.composite @@ -0,0 +1,62 @@ + + + + + + + + + + + + EJB + + + + + + + + + + EJB + + + + + + + + + + + + + Java + + + + + + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ear-appcomp-contrib-implicit/src/main/resources/isthisignored.composite b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ear-appcomp-contrib-implicit/src/main/resources/isthisignored.composite new file mode 100644 index 0000000000..90872041b0 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ear-appcomp-contrib-implicit/src/main/resources/isthisignored.composite @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ear-nonenhanced/pom.xml b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ear-nonenhanced/pom.xml new file mode 100644 index 0000000000..759ec1cbb5 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ear-nonenhanced/pom.xml @@ -0,0 +1,90 @@ + + + + + 4.0.0 + + org.apache.tuscany.sca + itest-contribution-jee-samples + 1.6.1 + ../pom.xml + + + itest-contribution-jee-samples-13-ear-nonenhanced + Apache Tuscany SCA iTest Contribution Java EE Samples 13 + ear + + + + org.apache.tuscany.sca + tuscany-sca-api + 1.6.1 + provided + + + + org.apache.geronimo.specs + geronimo-ejb_3.0_spec + 1.0 + provided + + + + org.apache.tuscany.sca + itest-contribution-jee-samples-07-ejb-nonenhanced + 1.6.1 + ejb + provided + + + + org.apache.tuscany.sca + itest-contribution-jee-samples-01-war-nonenhanced + 1.6.1 + war + provided + + + + + + + + org.apache.maven.plugins + maven-ear-plugin + + + + org.apache.tuscany.sca + itest-contribution-jee-samples-07-ejb-nonenhanced + / + + + org.apache.tuscany.sca + itest-contribution-jee-samples-01-war-nonenhanced + / + + + + + + ${artifactId} + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-explicit/pom.xml b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-explicit/pom.xml new file mode 100644 index 0000000000..6fd2c98a2c --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-explicit/pom.xml @@ -0,0 +1,68 @@ + + + + + 4.0.0 + + org.apache.tuscany.sca + itest-contribution-jee-samples + 1.6.1 + ../pom.xml + + + itest-contribution-jee-samples-11-ejb-appcomp-contrib-explicit + Apache Tuscany SCA iTest Contribution Java EE Samples 11 + ejb + + + + org.apache.tuscany.sca + tuscany-sca-api + 1.6.1 + provided + + + + org.apache.geronimo.specs + geronimo-ejb_3.0_spec + 1.0 + provided + + + org.apache.geronimo.specs + geronimo-annotation_1.0_spec + 1.1.1 + provided + + + + + ${artifactId} + + + org.apache.maven.plugins + maven-ejb-plugin + + 3.0 + + + + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-explicit/src/main/java/sample/ejb3/HelloworldService.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-explicit/src/main/java/sample/ejb3/HelloworldService.java new file mode 100644 index 0000000000..73d816311f --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-explicit/src/main/java/sample/ejb3/HelloworldService.java @@ -0,0 +1,31 @@ +/* + * 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. + */ + +package sample.ejb3; + +import javax.ejb.Remote; + +/** + * HelloworldService EJB interface. + */ + +@Remote +public interface HelloworldService { + String getGreetings(String name); +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-explicit/src/main/java/sample/ejb3/HelloworldServiceBean.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-explicit/src/main/java/sample/ejb3/HelloworldServiceBean.java new file mode 100644 index 0000000000..19879d9c42 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-explicit/src/main/java/sample/ejb3/HelloworldServiceBean.java @@ -0,0 +1,40 @@ +/** + * 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. + */ + +package sample.ejb3; + +import javax.ejb.Stateless; + +import org.osoa.sca.annotations.ComponentName; + +/** + * HelloworldService EJB implementation with no SCA enhancement + + */ +@Stateless +public class HelloworldServiceBean implements HelloworldService { + + @ComponentName + protected String componentName; + + public String getGreetings(String name) { + String greeting = componentName+" says, Hello " + name; + System.out.println(greeting); + return greeting; + } + +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-explicit/src/main/resources/META-INF/ejb-jar.composite b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-explicit/src/main/resources/META-INF/ejb-jar.composite new file mode 100644 index 0000000000..a6701d36cb --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-explicit/src/main/resources/META-INF/ejb-jar.composite @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-explicit/src/main/resources/META-INF/openejb-jar.xml b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-explicit/src/main/resources/META-INF/openejb-jar.xml new file mode 100644 index 0000000000..13a375bc0b --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-explicit/src/main/resources/META-INF/openejb-jar.xml @@ -0,0 +1,32 @@ + + + + + + test + itest-contribution-jee-samples-11-ejb-appcomp-contrib-explicit + 1.0 + jar + + + + + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-explicit/src/main/resources/META-INF/sca-contribution.xml b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-explicit/src/main/resources/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..74f92c024b --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-explicit/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,22 @@ + + + + + \ No newline at end of file diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/pom.xml b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/pom.xml new file mode 100644 index 0000000000..fa7b512cb0 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/pom.xml @@ -0,0 +1,68 @@ + + + + + 4.0.0 + + org.apache.tuscany.sca + itest-contribution-jee-samples + 1.6.1 + ../pom.xml + + + itest-contribution-jee-samples-12-ejb-appcomp-contrib-implicit + Apache Tuscany SCA iTest Contribution Java EE Samples 12 + ejb + + + + org.apache.tuscany.sca + tuscany-sca-api + 1.6.1 + provided + + + + org.apache.geronimo.specs + geronimo-ejb_3.0_spec + 1.0 + provided + + + org.apache.geronimo.specs + geronimo-annotation_1.0_spec + 1.1.1 + provided + + + + + ${artifactId} + + + org.apache.maven.plugins + maven-ejb-plugin + + 3.0 + + + + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/src/main/java/sample/ejb3/HelloworldService.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/src/main/java/sample/ejb3/HelloworldService.java new file mode 100644 index 0000000000..0194d1870c --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/src/main/java/sample/ejb3/HelloworldService.java @@ -0,0 +1,33 @@ +/* + * 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. + */ + +package sample.ejb3; + +import javax.ejb.Remote; + +/** + * HelloworldService EJB interface. + * + * @version $Rev$ $Date$ + */ + +@Remote +public interface HelloworldService { + String getGreetings(String name); +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/src/main/java/sample/ejb3/HelloworldServiceBean.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/src/main/java/sample/ejb3/HelloworldServiceBean.java new file mode 100644 index 0000000000..ad9003dc67 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/src/main/java/sample/ejb3/HelloworldServiceBean.java @@ -0,0 +1,40 @@ +/** + * 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. + */ + +package sample.ejb3; + +import javax.ejb.Stateless; + +import org.osoa.sca.annotations.Reference; + +/** + * HelloworldService EJB implementation with no SCA enhancement + + */ +@Stateless +public class HelloworldServiceBean implements HelloworldService { + + @Reference + protected HelloworldService nextService; + + public String getGreetings(String name) { + String greeting = "Hello " + name; + System.out.println(greeting); + return greeting; + } + +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/src/main/resources/META-INF/ejb-jar.composite b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/src/main/resources/META-INF/ejb-jar.composite new file mode 100644 index 0000000000..bcaa154913 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/src/main/resources/META-INF/ejb-jar.composite @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/src/main/resources/META-INF/openejb-jar.xml b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/src/main/resources/META-INF/openejb-jar.xml new file mode 100644 index 0000000000..9a97cbd535 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-appcomp-contrib-implicit/src/main/resources/META-INF/openejb-jar.xml @@ -0,0 +1,32 @@ + + + + + + test + itest-contribution-jee-samples-12-ejb-appcomp-contrib-implicit + 1.0 + jar + + + + + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-enhanced/pom.xml b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-enhanced/pom.xml new file mode 100644 index 0000000000..5a4c8b9a68 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-enhanced/pom.xml @@ -0,0 +1,68 @@ + + + + + 4.0.0 + + org.apache.tuscany.sca + itest-contribution-jee-samples + 1.6.1 + ../pom.xml + + + itest-contribution-jee-samples-08-ejb-enhanced + Apache Tuscany SCA iTest Contribution Java EE Samples 08 + ejb + + + + org.apache.tuscany.sca + tuscany-sca-api + 1.6.1 + provided + + + + org.apache.geronimo.specs + geronimo-ejb_3.0_spec + 1.0 + provided + + + org.apache.geronimo.specs + geronimo-annotation_1.0_spec + 1.1.1 + provided + + + + + ${artifactId} + + + org.apache.maven.plugins + maven-ejb-plugin + + 3.0 + + + + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-enhanced/src/main/java/sample/ejb3/HelloworldLocal8.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-enhanced/src/main/java/sample/ejb3/HelloworldLocal8.java new file mode 100644 index 0000000000..b5224a2319 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-enhanced/src/main/java/sample/ejb3/HelloworldLocal8.java @@ -0,0 +1,33 @@ +/* + * 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. + */ + +package sample.ejb3; + +import javax.ejb.Local; + +/** + * HelloworldService EJB interface. + * + * @version $Rev$ $Date$ + */ + +@Local +public interface HelloworldLocal8 { + String getGreetingsLocal(String name); +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-enhanced/src/main/java/sample/ejb3/HelloworldService8.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-enhanced/src/main/java/sample/ejb3/HelloworldService8.java new file mode 100644 index 0000000000..e5e9fe6a82 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-enhanced/src/main/java/sample/ejb3/HelloworldService8.java @@ -0,0 +1,33 @@ +/* + * 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. + */ + +package sample.ejb3; + +import javax.ejb.Remote; + +/** + * HelloworldService EJB interface. + * + * @version $Rev$ $Date$ + */ + +@Remote +public interface HelloworldService8 { + String getGreetings(String name); +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-enhanced/src/main/java/sample/ejb3/HelloworldService8Bean.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-enhanced/src/main/java/sample/ejb3/HelloworldService8Bean.java new file mode 100644 index 0000000000..a6d7f2dd04 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-enhanced/src/main/java/sample/ejb3/HelloworldService8Bean.java @@ -0,0 +1,50 @@ +/** + * 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. + */ + +package sample.ejb3; + +import javax.ejb.Stateless; + +import org.osoa.sca.annotations.Property; +import org.osoa.sca.annotations.Reference; + +/** + * HelloworldService EJB implementation SCA enhancement + + */ +@Stateless +public class HelloworldService8Bean implements HelloworldService8, HelloworldLocal8 { + + @Reference + protected HelloworldService8 hwReference; + + @Property + protected String hwProperty; + + public String getGreetings(String name) { + String greeting = "Hello remote " + name; + System.out.println(greeting); + return greeting; + } + + public String getGreetingsLocal(String name) { + String greeting = "Hello local " + name; + System.out.println(greeting); + return greeting; + } + +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-enhanced/src/main/resources/META-INF/openejb-jar.xml b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-enhanced/src/main/resources/META-INF/openejb-jar.xml new file mode 100644 index 0000000000..db36c4b140 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-enhanced/src/main/resources/META-INF/openejb-jar.xml @@ -0,0 +1,32 @@ + + + + + + test + itest-contribution-jee-samples-08-ejb-enhanced + 1.0 + jar + + + + + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-enhanced/src/main/resources/isthisignored.composite b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-enhanced/src/main/resources/isthisignored.composite new file mode 100644 index 0000000000..90872041b0 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-enhanced/src/main/resources/isthisignored.composite @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-nonenhanced/pom.xml b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-nonenhanced/pom.xml new file mode 100644 index 0000000000..3fd03887ff --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-nonenhanced/pom.xml @@ -0,0 +1,68 @@ + + + + + 4.0.0 + + org.apache.tuscany.sca + itest-contribution-jee-samples + 1.6.1 + ../pom.xml + + + itest-contribution-jee-samples-07-ejb-nonenhanced + Apache Tuscany SCA iTest Contribution Java EE Samples 07 + ejb + + + + org.apache.tuscany.sca + tuscany-sca-api + 1.6.1 + provided + + + + org.apache.geronimo.specs + geronimo-ejb_3.0_spec + 1.0 + provided + + + org.apache.geronimo.specs + geronimo-annotation_1.0_spec + 1.1.1 + provided + + + + + ${artifactId} + + + org.apache.maven.plugins + maven-ejb-plugin + + 3.0 + + + + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-nonenhanced/src/main/java/sample/ejb3/HelloworldLocal7.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-nonenhanced/src/main/java/sample/ejb3/HelloworldLocal7.java new file mode 100644 index 0000000000..4df5cd37de --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-nonenhanced/src/main/java/sample/ejb3/HelloworldLocal7.java @@ -0,0 +1,33 @@ +/* + * 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. + */ + +package sample.ejb3; + +import javax.ejb.Local; + +/** + * HelloworldService EJB interface. + * + * @version $Rev$ $Date$ + */ + +@Local +public interface HelloworldLocal7 { + String getGreetingsLocal(String name); +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-nonenhanced/src/main/java/sample/ejb3/HelloworldService7.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-nonenhanced/src/main/java/sample/ejb3/HelloworldService7.java new file mode 100644 index 0000000000..41ecddb62e --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-nonenhanced/src/main/java/sample/ejb3/HelloworldService7.java @@ -0,0 +1,33 @@ +/* + * 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. + */ + +package sample.ejb3; + +import javax.ejb.Remote; + +/** + * HelloworldService EJB interface. + * + * @version $Rev$ $Date$ + */ + +@Remote +public interface HelloworldService7 { + String getGreetings(String name); +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-nonenhanced/src/main/java/sample/ejb3/HelloworldService7Bean.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-nonenhanced/src/main/java/sample/ejb3/HelloworldService7Bean.java new file mode 100644 index 0000000000..403ead623c --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-nonenhanced/src/main/java/sample/ejb3/HelloworldService7Bean.java @@ -0,0 +1,41 @@ +/** + * 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. + */ + +package sample.ejb3; + +import javax.ejb.Stateless; + +/** + * HelloworldService EJB implementation with no SCA enhancement + + */ +@Stateless +public class HelloworldService7Bean implements HelloworldService7, HelloworldLocal7 { + + public String getGreetings(String name) { + String greeting = "Hello remote " + name; + System.out.println(greeting); + return greeting; + } + + public String getGreetingsLocal(String name) { + String greeting = "Hello local " + name; + System.out.println(greeting); + return greeting; + } + +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-nonenhanced/src/main/java/sample/ejb3/HelloworldService7aBean.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-nonenhanced/src/main/java/sample/ejb3/HelloworldService7aBean.java new file mode 100644 index 0000000000..97242bff96 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-nonenhanced/src/main/java/sample/ejb3/HelloworldService7aBean.java @@ -0,0 +1,41 @@ +/** + * 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. + */ + +package sample.ejb3; + +import javax.ejb.Stateless; + +/** + * Another HelloworldService EJB implementation with no SCA enhancement + * A test for TUSCANY-3198 + */ +@Stateless +public class HelloworldService7aBean implements HelloworldService7, HelloworldLocal7 { + + public String getGreetings(String name) { + String greeting = "Hello remote " + name; + System.out.println(greeting); + return greeting; + } + + public String getGreetingsLocal(String name) { + String greeting = "Hello local " + name; + System.out.println(greeting); + return greeting; + } + +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-nonenhanced/src/main/resources/META-INF/openejb-jar.xml b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-nonenhanced/src/main/resources/META-INF/openejb-jar.xml new file mode 100644 index 0000000000..7428735903 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/ejb-nonenhanced/src/main/resources/META-INF/openejb-jar.xml @@ -0,0 +1,32 @@ + + + + + + test + itest-contribution-jee-samples-7-ejb-nonenhanced + 1.0 + jar + + + + + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/jar-shared/pom.xml b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/jar-shared/pom.xml new file mode 100644 index 0000000000..c4c20a51bb --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/jar-shared/pom.xml @@ -0,0 +1,72 @@ + + + + + 4.0.0 + + org.apache.tuscany.sca + itest-contribution-jee-samples + 1.6.1 + ../pom.xml + + + itest-contribution-jee-samples-00-jar-shared + Apache Tuscany SCA iTest Contribution Java EE Samples 00 + + + + org.apache.tuscany.sca + tuscany-sca-api + 1.6.1 + provided + + + + org.apache.geronimo.specs + geronimo-ejb_3.0_spec + 1.0 + provided + + + org.apache.geronimo.specs + geronimo-annotation_1.0_spec + 1.1.1 + provided + + + + + ${artifactId} + + + org.apache.maven.plugins + maven-jar-plugin + 2.2 + + + + sample.java.JarMain + + + + + + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/jar-shared/src/main/java/sample/java/HelloworldServiceJava.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/jar-shared/src/main/java/sample/java/HelloworldServiceJava.java new file mode 100644 index 0000000000..5a08769550 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/jar-shared/src/main/java/sample/java/HelloworldServiceJava.java @@ -0,0 +1,33 @@ +/* + * 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. + */ + +package sample.java; + +import org.osoa.sca.annotations.Remotable; + +/** + * HelloworldService EJB interface. + * + * @version $Rev$ $Date$ + */ + +@Remotable +public interface HelloworldServiceJava { + String getGreetings(String name); +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/jar-shared/src/main/java/sample/java/HelloworldServiceJavaImpl.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/jar-shared/src/main/java/sample/java/HelloworldServiceJavaImpl.java new file mode 100644 index 0000000000..265af5b3a0 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/jar-shared/src/main/java/sample/java/HelloworldServiceJavaImpl.java @@ -0,0 +1,36 @@ +/** + * 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. + */ + +package sample.java; + +import org.osoa.sca.annotations.Property; +import org.osoa.sca.annotations.Reference; + +public class HelloworldServiceJavaImpl implements HelloworldServiceJava { + + @Reference + protected HelloworldServiceJava hwReference; + + @Property + protected String hwProperty; + + public String getGreetings(String name) { + String greeting = hwReference.getGreetings(name) + " " + hwProperty; + System.out.println(greeting); + return greeting; + } +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/jar-shared/src/main/java/sample/java/JarMain.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/jar-shared/src/main/java/sample/java/JarMain.java new file mode 100644 index 0000000000..81793e47e6 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/jar-shared/src/main/java/sample/java/JarMain.java @@ -0,0 +1,24 @@ +/** + * 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. + */ +package sample.java; + +public class JarMain { + + public static void main(String[] args) { + System.out.println("JarMain called"); + } +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/pom.xml b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/pom.xml new file mode 100644 index 0000000000..58c4233de4 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/pom.xml @@ -0,0 +1,60 @@ + + + + 4.0.0 + + + org.apache.tuscany.sca + tuscany-itest + 1.6.1 + ../pom.xml + + + itest-contribution-jee-samples + Apache Tuscany SCA iTest Contribution Java EE Samples + + pom + + + + default + + true + + + jar-shared + war-nonenhanced + war-appcomp-contrib-implicit + ejb-nonenhanced + ejb-enhanced + ejb-appcomp-contrib-implicit + ear-nonenhanced + ear-appcomp-contrib-implicit + ear-appcomp-contrib-implicit-war-appcomp + scajar-ear-nonenhanced + scajar-ear-appcomp + scajar-ear-appcomp-war-appcomp + scajar-ejb-nonenhanced + scazip-ejb-appcomp + scazip-war-appcomp + + + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/sample-11-client/pom.xml b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/sample-11-client/pom.xml new file mode 100644 index 0000000000..56b4f51247 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/sample-11-client/pom.xml @@ -0,0 +1,72 @@ + + + + + + + 4.0.0 + + org.apache.tuscany.sca + itest-contribution-jee-samples + 1.6.1 + ../pom.xml + + + itest-contribution-jee-samples-11-client + JEE Integration Samples :: Sample 11 Client + war + + + + org.apache.tuscany.sca + tuscany-sca-api + 1.6.1 + provided + + + org.apache.geronimo.specs + geronimo-servlet_2.5_spec + 1.1 + provided + + + org.apache.geronimo.specs + geronimo-annotation_1.0_spec + 1.1.1 + provided + + + org.apache.geronimo.specs + geronimo-ejb_3.0_spec + 1.0 + provided + + + + + + + org.apache.maven.plugins + maven-war-plugin + + + ${artifactId} + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/sample-11-client/src/main/java/sample/HelloworldServlet.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/sample-11-client/src/main/java/sample/HelloworldServlet.java new file mode 100644 index 0000000000..43870422c0 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/sample-11-client/src/main/java/sample/HelloworldServlet.java @@ -0,0 +1,72 @@ +/* + * 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. + */ +package sample; + +import java.io.IOException; +import java.io.Writer; + +import javax.servlet.ServletConfig; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +import org.osoa.sca.annotations.ComponentName; +import org.osoa.sca.annotations.Reference; + +import sample.ejb3.HelloworldService; + +/** + * A servlet that invokes Helloworld SCA service through injected references. + * + */ +public class HelloworldServlet extends HttpServlet { + private static final long serialVersionUID = 1L; + + @Reference(name="service") + protected HelloworldService service; + + @ComponentName + protected String scaComponentName; + + @Override + public void init(ServletConfig config) { + // This method assumes that componentContext is injected. + } + + @Override + protected void service(HttpServletRequest request, HttpServletResponse response) throws IOException { + + String name = request.getParameter("name"); + String greeting0 = service.getGreetings(name); + + Writer out = response.getWriter(); + out.write("Apache Tuscany Helloworld Servlet Sample 11 Client"); + out.write("

Apache Tuscany Helloworld Servlet Sample 11 Client

"); + out.write("

SCA Service provided by EJB

"); + out.write("
Reference injected.
Result: " + greeting0); + out.write("
"); + + out.write("

@ComponentName

"); + out.write("
Injected into field: "+scaComponentName); + out.write("
"); + out.write(""); + out.flush(); + out.close(); + } +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/sample-11-client/src/main/java/sample/ejb3/HelloworldService.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/sample-11-client/src/main/java/sample/ejb3/HelloworldService.java new file mode 100644 index 0000000000..73d816311f --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/sample-11-client/src/main/java/sample/ejb3/HelloworldService.java @@ -0,0 +1,31 @@ +/* + * 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. + */ + +package sample.ejb3; + +import javax.ejb.Remote; + +/** + * HelloworldService EJB interface. + */ + +@Remote +public interface HelloworldService { + String getGreetings(String name); +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/sample-11-client/src/main/webapp/WEB-INF/geronimo-web.xml b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/sample-11-client/src/main/webapp/WEB-INF/geronimo-web.xml new file mode 100644 index 0000000000..1f4d7195c0 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/sample-11-client/src/main/webapp/WEB-INF/geronimo-web.xml @@ -0,0 +1,33 @@ + + + + + + test + itest-contribution-jee-samples-11-client + 1.0 + war + + + + + + /itest-contribution-jee-samples-11-client + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/sample-11-client/src/main/webapp/WEB-INF/web.composite b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/sample-11-client/src/main/webapp/WEB-INF/web.composite new file mode 100644 index 0000000000..b284b201e4 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/sample-11-client/src/main/webapp/WEB-INF/web.composite @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/sample-11-client/src/main/webapp/WEB-INF/web.xml b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/sample-11-client/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000000..1947a53cf0 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/sample-11-client/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,41 @@ + + + + + + + JEE Samples :: Sample 11 Client + + + HelloworldServlet + sample.HelloworldServlet + + + + HelloworldServlet + /HelloworldServlet + + + + hello.html + + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/sample-11-client/src/main/webapp/hello.html b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/sample-11-client/src/main/webapp/hello.html new file mode 100644 index 0000000000..bba288b4aa --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/sample-11-client/src/main/webapp/hello.html @@ -0,0 +1,46 @@ + + + + +Apache Tuscany Helloworld Servlet Sample 11 Client + + + + +

Apache Tuscany Helloworld Servlet Sample 11 Client

+ +
+ + + + + + + + +
Enter your name: + +
+ +
+
+ + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/pom.xml b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/pom.xml new file mode 100644 index 0000000000..d7fcec560e --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/pom.xml @@ -0,0 +1,72 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-sca + 1.6.1 + ../../pom.xml + + itest-contribution-jee-samples-43-scajar-ear-appcomp-war-appcomp + Apache Tuscany SCA iTest Contribution Java EE Samples 43 + + + + apache.incubator + http://people.apache.org/repo/m2-incubating-repository + + + + + + org.apache.tuscany.sca + tuscany-sca-api + 1.6.1 + provided + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.6.1 + runtime + + + + org.apache.geronimo.specs + geronimo-ejb_3.0_spec + 1.0 + provided + + + + junit + junit + 4.5 + test + + + + + + ${artifactId} + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/ejb3/HelloworldService.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/ejb3/HelloworldService.java new file mode 100644 index 0000000000..0194d1870c --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/ejb3/HelloworldService.java @@ -0,0 +1,33 @@ +/* + * 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. + */ + +package sample.ejb3; + +import javax.ejb.Remote; + +/** + * HelloworldService EJB interface. + * + * @version $Rev$ $Date$ + */ + +@Remote +public interface HelloworldService { + String getGreetings(String name); +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/java/HelloworldServiceJava.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/java/HelloworldServiceJava.java new file mode 100644 index 0000000000..1fad282a75 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/java/HelloworldServiceJava.java @@ -0,0 +1,28 @@ +/* + * 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. + */ + +package sample.java; + +import org.osoa.sca.annotations.Remotable; + + +@Remotable +public interface HelloworldServiceJava { + String getGreetings(String name); +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/pojo/HelloworldClient2.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/pojo/HelloworldClient2.java new file mode 100644 index 0000000000..8adb6a5995 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/pojo/HelloworldClient2.java @@ -0,0 +1,25 @@ +/* + * 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. + */ +package sample.pojo; + +public interface HelloworldClient2 { + + String getGreetings(String name); + +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/pojo/HelloworldClient2Impl.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/pojo/HelloworldClient2Impl.java new file mode 100644 index 0000000000..ae16263505 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/pojo/HelloworldClient2Impl.java @@ -0,0 +1,39 @@ +/* + * 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. + */ +package sample.pojo; + +import org.osoa.sca.annotations.Reference; + +import sample.ejb3.HelloworldService; +import sample.java.HelloworldServiceJava; + +public class HelloworldClient2Impl implements HelloworldClient2 { + + @Reference + protected HelloworldService hwService; + + @Reference + protected HelloworldServiceJava hwJavaService; + + public String getGreetings(String name){ + //return hwService.getGreetings(name) + hwJavaService.getGreetings(name); + return hwJavaService.getGreetings(name); + } + +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/pojo/HelloworldTargetImpl.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/pojo/HelloworldTargetImpl.java new file mode 100644 index 0000000000..05885cead7 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/java/sample/pojo/HelloworldTargetImpl.java @@ -0,0 +1,29 @@ +/* + * 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. + */ +package sample.pojo; + +import sample.java.HelloworldServiceJava; + +public class HelloworldTargetImpl implements HelloworldServiceJava { + + public String getGreetings(String name){ + return "Hello " + name; + } + +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/resources/helloworld.composite b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/resources/helloworld.composite new file mode 100644 index 0000000000..e9346fb2bb --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp-war-appcomp/src/main/resources/helloworld.composite @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp/pom.xml b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp/pom.xml new file mode 100644 index 0000000000..6203d9831e --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp/pom.xml @@ -0,0 +1,72 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-sca + 1.6.1 + ../../pom.xml + + itest-contribution-jee-samples-41-scajar-ear-appcomp + Apache Tuscany SCA iTest Contribution Java EE Samples 41 + + + + apache.incubator + http://people.apache.org/repo/m2-incubating-repository + + + + + + org.apache.tuscany.sca + tuscany-sca-api + 1.6.1 + provided + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.6.1 + runtime + + + + org.apache.geronimo.specs + geronimo-ejb_3.0_spec + 1.0 + provided + + + + junit + junit + 4.5 + test + + + + + + ${artifactId} + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/ejb3/HelloworldService.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/ejb3/HelloworldService.java new file mode 100644 index 0000000000..0194d1870c --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/ejb3/HelloworldService.java @@ -0,0 +1,33 @@ +/* + * 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. + */ + +package sample.ejb3; + +import javax.ejb.Remote; + +/** + * HelloworldService EJB interface. + * + * @version $Rev$ $Date$ + */ + +@Remote +public interface HelloworldService { + String getGreetings(String name); +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/java/HelloworldServiceJava.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/java/HelloworldServiceJava.java new file mode 100644 index 0000000000..1fad282a75 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/java/HelloworldServiceJava.java @@ -0,0 +1,28 @@ +/* + * 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. + */ + +package sample.java; + +import org.osoa.sca.annotations.Remotable; + + +@Remotable +public interface HelloworldServiceJava { + String getGreetings(String name); +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/pojo/HelloworldClient2.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/pojo/HelloworldClient2.java new file mode 100644 index 0000000000..8adb6a5995 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/pojo/HelloworldClient2.java @@ -0,0 +1,25 @@ +/* + * 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. + */ +package sample.pojo; + +public interface HelloworldClient2 { + + String getGreetings(String name); + +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/pojo/HelloworldClient2Impl.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/pojo/HelloworldClient2Impl.java new file mode 100644 index 0000000000..ae16263505 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/pojo/HelloworldClient2Impl.java @@ -0,0 +1,39 @@ +/* + * 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. + */ +package sample.pojo; + +import org.osoa.sca.annotations.Reference; + +import sample.ejb3.HelloworldService; +import sample.java.HelloworldServiceJava; + +public class HelloworldClient2Impl implements HelloworldClient2 { + + @Reference + protected HelloworldService hwService; + + @Reference + protected HelloworldServiceJava hwJavaService; + + public String getGreetings(String name){ + //return hwService.getGreetings(name) + hwJavaService.getGreetings(name); + return hwJavaService.getGreetings(name); + } + +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/pojo/HelloworldTargetImpl.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/pojo/HelloworldTargetImpl.java new file mode 100644 index 0000000000..05885cead7 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/java/sample/pojo/HelloworldTargetImpl.java @@ -0,0 +1,29 @@ +/* + * 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. + */ +package sample.pojo; + +import sample.java.HelloworldServiceJava; + +public class HelloworldTargetImpl implements HelloworldServiceJava { + + public String getGreetings(String name){ + return "Hello " + name; + } + +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/resources/helloworld.composite b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/resources/helloworld.composite new file mode 100644 index 0000000000..8f8d46ccd7 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-appcomp/src/main/resources/helloworld.composite @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-nonenhanced/pom.xml b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-nonenhanced/pom.xml new file mode 100644 index 0000000000..1bc5ac98d4 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-nonenhanced/pom.xml @@ -0,0 +1,72 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-sca + 1.6.1 + ../../pom.xml + + itest-contribution-jee-samples-35-scajar-ear-nonenhanced + Apache Tuscany SCA iTest Contribution Java EE Samples 35 + + + + apache.incubator + http://people.apache.org/repo/m2-incubating-repository + + + + + + org.apache.tuscany.sca + tuscany-sca-api + 1.6.1 + provided + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.6.1 + runtime + + + + org.apache.geronimo.specs + geronimo-ejb_3.0_spec + 1.0 + provided + + + + junit + junit + 4.5 + test + + + + + + ${artifactId} + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-nonenhanced/src/main/java/sample/ejb3/HelloworldService.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-nonenhanced/src/main/java/sample/ejb3/HelloworldService.java new file mode 100644 index 0000000000..0194d1870c --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-nonenhanced/src/main/java/sample/ejb3/HelloworldService.java @@ -0,0 +1,33 @@ +/* + * 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. + */ + +package sample.ejb3; + +import javax.ejb.Remote; + +/** + * HelloworldService EJB interface. + * + * @version $Rev$ $Date$ + */ + +@Remote +public interface HelloworldService { + String getGreetings(String name); +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-nonenhanced/src/main/java/sample/pojo/HelloworldClient.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-nonenhanced/src/main/java/sample/pojo/HelloworldClient.java new file mode 100644 index 0000000000..6f37c9b272 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-nonenhanced/src/main/java/sample/pojo/HelloworldClient.java @@ -0,0 +1,25 @@ +/* + * 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. + */ +package sample.pojo; + +public interface HelloworldClient { + + String getGreetings(String name); + +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-nonenhanced/src/main/java/sample/pojo/HelloworldClientImpl.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-nonenhanced/src/main/java/sample/pojo/HelloworldClientImpl.java new file mode 100644 index 0000000000..a38c4a773f --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-nonenhanced/src/main/java/sample/pojo/HelloworldClientImpl.java @@ -0,0 +1,34 @@ +/* + * 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. + */ +package sample.pojo; + +import org.osoa.sca.annotations.Reference; + +import sample.ejb3.HelloworldService; + +public class HelloworldClientImpl implements HelloworldClient { + + @Reference + protected HelloworldService hwService; + + public String getGreetings(String name){ + return hwService.getGreetings(name); + } + +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-nonenhanced/src/main/resources/helloworld.composite b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-nonenhanced/src/main/resources/helloworld.composite new file mode 100644 index 0000000000..79c9dd3243 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ear-nonenhanced/src/main/resources/helloworld.composite @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ejb-nonenhanced/pom.xml b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ejb-nonenhanced/pom.xml new file mode 100644 index 0000000000..660e758ea0 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ejb-nonenhanced/pom.xml @@ -0,0 +1,72 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-sca + 1.6.1 + ../../pom.xml + + itest-contribution-jee-samples-44-scajar-ejb-nonenhanced + Apache Tuscany SCA iTest Contribution Java EE Samples 44 + + + + apache.incubator + http://people.apache.org/repo/m2-incubating-repository + + + + + + org.apache.tuscany.sca + tuscany-sca-api + 1.6.1 + provided + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.6.1 + runtime + + + + org.apache.geronimo.specs + geronimo-ejb_3.0_spec + 1.0 + provided + + + + junit + junit + 4.5 + test + + + + + + ${artifactId} + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ejb-nonenhanced/src/main/java/sample/ejb3/HelloworldService.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ejb-nonenhanced/src/main/java/sample/ejb3/HelloworldService.java new file mode 100644 index 0000000000..0194d1870c --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ejb-nonenhanced/src/main/java/sample/ejb3/HelloworldService.java @@ -0,0 +1,33 @@ +/* + * 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. + */ + +package sample.ejb3; + +import javax.ejb.Remote; + +/** + * HelloworldService EJB interface. + * + * @version $Rev$ $Date$ + */ + +@Remote +public interface HelloworldService { + String getGreetings(String name); +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ejb-nonenhanced/src/main/java/sample/pojo/HelloworldClient.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ejb-nonenhanced/src/main/java/sample/pojo/HelloworldClient.java new file mode 100644 index 0000000000..6f37c9b272 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ejb-nonenhanced/src/main/java/sample/pojo/HelloworldClient.java @@ -0,0 +1,25 @@ +/* + * 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. + */ +package sample.pojo; + +public interface HelloworldClient { + + String getGreetings(String name); + +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ejb-nonenhanced/src/main/java/sample/pojo/HelloworldClientImpl.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ejb-nonenhanced/src/main/java/sample/pojo/HelloworldClientImpl.java new file mode 100644 index 0000000000..a38c4a773f --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ejb-nonenhanced/src/main/java/sample/pojo/HelloworldClientImpl.java @@ -0,0 +1,34 @@ +/* + * 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. + */ +package sample.pojo; + +import org.osoa.sca.annotations.Reference; + +import sample.ejb3.HelloworldService; + +public class HelloworldClientImpl implements HelloworldClient { + + @Reference + protected HelloworldService hwService; + + public String getGreetings(String name){ + return hwService.getGreetings(name); + } + +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ejb-nonenhanced/src/main/resources/helloworld.composite b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ejb-nonenhanced/src/main/resources/helloworld.composite new file mode 100644 index 0000000000..5fa7cda269 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scajar-ejb-nonenhanced/src/main/resources/helloworld.composite @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-ejb-appcomp/build.xml b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-ejb-appcomp/build.xml new file mode 100644 index 0000000000..bdbe79a46d --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-ejb-appcomp/build.xml @@ -0,0 +1,24 @@ + + + + + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-ejb-appcomp/pom.xml b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-ejb-appcomp/pom.xml new file mode 100644 index 0000000000..509caf794b --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-ejb-appcomp/pom.xml @@ -0,0 +1,135 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-sca + 1.6.1 + ../../pom.xml + + itest-contribution-jee-samples-10-scazip-ejb-appcomp + Apache Tuscany SCA iTest Contribution Java EE Samples 10 + + + + apache.incubator + http://people.apache.org/repo/m2-incubating-repository + + + + + + org.apache.tuscany.sca + tuscany-sca-api + 1.6.1 + provided + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.6.1 + runtime + + + + org.apache.geronimo.specs + geronimo-ejb_3.0_spec + 1.0 + provided + + + + org.apache.tuscany.sca + itest-contribution-jee-samples-12-ejb-appcomp-contrib-implicit + 1.6.1 + ejb + + + + junit + junit + 4.5 + test + + + + + + ${artifactId} + + + org.apache.maven.plugins + maven-dependency-plugin + + + generate-sources + + copy + + + + + org.apache.tuscany.sca + itest-contribution-jee-samples-12-ejb-appcomp-contrib-implicit + ${project.version} + true + ${project.build.directory}/classes + + + true + + + + + + org.apache.maven.plugins + maven-antrun-plugin + 1.3 + + + + ant + ant-trax + 1.6.5 + + + + + + copy-jar-to-zip + verify + + run + + + + + + + + + + + + + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-ejb-appcomp/src/main/java/sample/ejb3/HelloworldService.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-ejb-appcomp/src/main/java/sample/ejb3/HelloworldService.java new file mode 100644 index 0000000000..0194d1870c --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-ejb-appcomp/src/main/java/sample/ejb3/HelloworldService.java @@ -0,0 +1,33 @@ +/* + * 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. + */ + +package sample.ejb3; + +import javax.ejb.Remote; + +/** + * HelloworldService EJB interface. + * + * @version $Rev$ $Date$ + */ + +@Remote +public interface HelloworldService { + String getGreetings(String name); +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-ejb-appcomp/src/main/java/sample/pojo/HelloworldClient.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-ejb-appcomp/src/main/java/sample/pojo/HelloworldClient.java new file mode 100644 index 0000000000..6f37c9b272 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-ejb-appcomp/src/main/java/sample/pojo/HelloworldClient.java @@ -0,0 +1,25 @@ +/* + * 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. + */ +package sample.pojo; + +public interface HelloworldClient { + + String getGreetings(String name); + +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-ejb-appcomp/src/main/java/sample/pojo/HelloworldClientImpl.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-ejb-appcomp/src/main/java/sample/pojo/HelloworldClientImpl.java new file mode 100644 index 0000000000..a38c4a773f --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-ejb-appcomp/src/main/java/sample/pojo/HelloworldClientImpl.java @@ -0,0 +1,34 @@ +/* + * 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. + */ +package sample.pojo; + +import org.osoa.sca.annotations.Reference; + +import sample.ejb3.HelloworldService; + +public class HelloworldClientImpl implements HelloworldClient { + + @Reference + protected HelloworldService hwService; + + public String getGreetings(String name){ + return hwService.getGreetings(name); + } + +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-ejb-appcomp/src/main/resources/helloworld.composite b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-ejb-appcomp/src/main/resources/helloworld.composite new file mode 100644 index 0000000000..909b8a1484 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-ejb-appcomp/src/main/resources/helloworld.composite @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-war-appcomp/build.xml b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-war-appcomp/build.xml new file mode 100644 index 0000000000..bdbe79a46d --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-war-appcomp/build.xml @@ -0,0 +1,24 @@ + + + + + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-war-appcomp/pom.xml b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-war-appcomp/pom.xml new file mode 100644 index 0000000000..35f2ae15da --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-war-appcomp/pom.xml @@ -0,0 +1,136 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-sca + 1.6.1 + ../../pom.xml + + itest-contribution-jee-samples-04-scazip-war-appcomp + Apache Tuscany SCA iTest Contribution Java EE Samples 04 + + + + apache.incubator + http://people.apache.org/repo/m2-incubating-repository + + + + + + org.apache.tuscany.sca + tuscany-sca-api + 1.6.1 + provided + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.6.1 + runtime + + + + org.apache.geronimo.specs + geronimo-ejb_3.0_spec + 1.0 + provided + + + + org.apache.tuscany.sca + itest-contribution-jee-samples-06-war-appcomp-contrib-implicit + 1.6.1 + war + + + + junit + junit + 4.5 + test + + + + + + ${artifactId} + + + org.apache.maven.plugins + maven-dependency-plugin + + + generate-sources + + copy + + + + + org.apache.tuscany.sca + itest-contribution-jee-samples-06-war-appcomp-contrib-implicit + ${project.version} + war + true + ${project.build.directory}/classes + + + true + + + + + + org.apache.maven.plugins + maven-antrun-plugin + 1.3 + + + + ant + ant-trax + 1.6.5 + + + + + + copy-jar-to-zip + verify + + run + + + + + + + + + + + + + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-war-appcomp/src/main/java/sample/ejb3/HelloworldService.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-war-appcomp/src/main/java/sample/ejb3/HelloworldService.java new file mode 100644 index 0000000000..0194d1870c --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-war-appcomp/src/main/java/sample/ejb3/HelloworldService.java @@ -0,0 +1,33 @@ +/* + * 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. + */ + +package sample.ejb3; + +import javax.ejb.Remote; + +/** + * HelloworldService EJB interface. + * + * @version $Rev$ $Date$ + */ + +@Remote +public interface HelloworldService { + String getGreetings(String name); +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-war-appcomp/src/main/java/sample/pojo/HelloworldClient.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-war-appcomp/src/main/java/sample/pojo/HelloworldClient.java new file mode 100644 index 0000000000..6f37c9b272 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-war-appcomp/src/main/java/sample/pojo/HelloworldClient.java @@ -0,0 +1,25 @@ +/* + * 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. + */ +package sample.pojo; + +public interface HelloworldClient { + + String getGreetings(String name); + +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-war-appcomp/src/main/java/sample/pojo/HelloworldClientImpl.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-war-appcomp/src/main/java/sample/pojo/HelloworldClientImpl.java new file mode 100644 index 0000000000..a38c4a773f --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-war-appcomp/src/main/java/sample/pojo/HelloworldClientImpl.java @@ -0,0 +1,34 @@ +/* + * 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. + */ +package sample.pojo; + +import org.osoa.sca.annotations.Reference; + +import sample.ejb3.HelloworldService; + +public class HelloworldClientImpl implements HelloworldClient { + + @Reference + protected HelloworldService hwService; + + public String getGreetings(String name){ + return hwService.getGreetings(name); + } + +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-war-appcomp/src/main/resources/helloworld.composite b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-war-appcomp/src/main/resources/helloworld.composite new file mode 100644 index 0000000000..eaa567595e --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/scazip-war-appcomp/src/main/resources/helloworld.composite @@ -0,0 +1,29 @@ + + + + + + + + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-appcomp-contrib-implicit/pom.xml b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-appcomp-contrib-implicit/pom.xml new file mode 100644 index 0000000000..a61c7b2adb --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-appcomp-contrib-implicit/pom.xml @@ -0,0 +1,66 @@ + + + + + 4.0.0 + + org.apache.tuscany.sca + itest-contribution-jee-samples + 1.6.1 + ../pom.xml + + + itest-contribution-jee-samples-06-war-appcomp-contrib-implicit + Apache Tuscany SCA iTest Contribution Java EE Samples 06 + war + + + + org.apache.tuscany.sca + tuscany-sca-api + 1.6.1 + provided + + + + javax.servlet + servlet-api + 2.5 + provided + + + + org.apache.geronimo.specs + geronimo-ejb_3.0_spec + 1.0 + provided + + + + + + + org.apache.maven.plugins + maven-war-plugin + + + ${artifactId} + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/java/sample/HelloworldEjbServlet.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/java/sample/HelloworldEjbServlet.java new file mode 100644 index 0000000000..ae8613f8db --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/java/sample/HelloworldEjbServlet.java @@ -0,0 +1,66 @@ +/* + * 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. + */ +package sample; + +import java.io.IOException; +import java.io.Writer; + +import javax.ejb.EJB; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +import org.osoa.sca.annotations.Reference; + +import sample.ejb3.HelloworldService; + +/** + * A servlet that invokes HelloworldService which is an SCA enhanced stateless EJB. + * + * @version $Rev$ $Date$ + */ +public class HelloworldEjbServlet extends HttpServlet { + private static final long serialVersionUID = -4448818871934180718L; + + @EJB + private HelloworldService service; + + @Reference + protected HelloworldService helloworldSca; + + @Override + protected void service(HttpServletRequest request, HttpServletResponse response) throws IOException { + String name = request.getParameter("name"); + String greeting = service.getGreetings(name); + String greeting2 = helloworldSca.getGreetings(name.toUpperCase()); + + Writer out = response.getWriter(); + out.write("Apache Tuscany Helloworld Web Sample"); + out.write("

Apache Tuscany Helloworld Web Sample

"); + out.write("This page displays the response got from HelloworldServiceBean, which is a Stateless EJB."); + out.write("
Parameter sent to HelloworldService.getGreeting: "+name); + out.write(greeting); + out.write("The following is got by invoking the HelloworldService SCA service provided by the HelloworldServiceBean"); + out.write("
Parameter sent to HelloworldService.getGreeting: "+name.toUpperCase()); + out.write(greeting2); + out.write(""); + out.flush(); + out.close(); + } +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/java/sample/ejb3/HelloworldService.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/java/sample/ejb3/HelloworldService.java new file mode 100644 index 0000000000..0194d1870c --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/java/sample/ejb3/HelloworldService.java @@ -0,0 +1,33 @@ +/* + * 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. + */ + +package sample.ejb3; + +import javax.ejb.Remote; + +/** + * HelloworldService EJB interface. + * + * @version $Rev$ $Date$ + */ + +@Remote +public interface HelloworldService { + String getGreetings(String name); +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/webapp/WEB-INF/geronimo-web.xml b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/webapp/WEB-INF/geronimo-web.xml new file mode 100644 index 0000000000..2563c8b7c8 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/webapp/WEB-INF/geronimo-web.xml @@ -0,0 +1,49 @@ + + + + + + test + helloworld-web + 1.0 + car + + + + test + helloworld-ejb + 1.0 + jar + + + + + + helloworld-web + + ejb/HelloworldServiceBean + + test + helloworld-ejb + 1.0 + HelloworldServiceBean + + + \ No newline at end of file diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/webapp/WEB-INF/web.composite b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/webapp/WEB-INF/web.composite new file mode 100644 index 0000000000..823085e81f --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/webapp/WEB-INF/web.composite @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/webapp/WEB-INF/web.xml b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000000..628588a974 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,41 @@ + + + + + + + Helloworld Web Sample + + + HelloworldEjbServlet + sample.HelloworldEjbServlet + + + + HelloworldEjbServlet + /HelloworldEjbServlet + + + + hello.html + + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/webapp/hello.html b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/webapp/hello.html new file mode 100644 index 0000000000..69473543c9 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-appcomp-contrib-implicit/src/main/webapp/hello.html @@ -0,0 +1,50 @@ + + + + +Apache Tuscany Helloworld Web Sample + + + + +

Apache Tuscany Helloworld Web Sample

+ +This web page posts the data to HelloworldEjbServlet. The servlet invokes HelloworldServiceBean, which is a Stateless EJB. +The EJB in turn invokes Helloworld SCA service through proxies injected into EJB fields. + +

+ +
+ + + + + + + + +
Enter your name: + +
+ +
+
+ + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-nonenhanced/pom.xml b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-nonenhanced/pom.xml new file mode 100644 index 0000000000..6b1da936dd --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-nonenhanced/pom.xml @@ -0,0 +1,66 @@ + + + + + 4.0.0 + + org.apache.tuscany.sca + itest-contribution-jee-samples + 1.6.1 + ../pom.xml + + + itest-contribution-jee-samples-01-war-nonenhanced + Apache Tuscany SCA iTest Contribution Java EE Samples 01 + war + + + + org.apache.tuscany.sca + tuscany-sca-api + 1.6.1 + provided + + + + javax.servlet + servlet-api + 2.5 + provided + + + + org.apache.geronimo.specs + geronimo-ejb_3.0_spec + 1.0 + provided + + + + + + + org.apache.maven.plugins + maven-war-plugin + + + ${artifactId} + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-nonenhanced/src/main/java/sample/HelloworldEjbServlet.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-nonenhanced/src/main/java/sample/HelloworldEjbServlet.java new file mode 100644 index 0000000000..71055bbdfe --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-nonenhanced/src/main/java/sample/HelloworldEjbServlet.java @@ -0,0 +1,63 @@ +/* + * 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. + */ +package sample; + +import java.io.IOException; +import java.io.Writer; + +import javax.ejb.EJB; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +import org.osoa.sca.annotations.Reference; + +import sample.ejb3.HelloworldService; + +/** + * A servlet that invokes HelloworldService which is an SCA enhanced stateless EJB. + * + * @version $Rev$ $Date$ + */ +public class HelloworldEjbServlet extends HttpServlet { + private static final long serialVersionUID = -4448818871934180718L; + + @EJB + private HelloworldService service; + + @Override + protected void service(HttpServletRequest request, HttpServletResponse response) throws IOException { + String name = request.getParameter("name"); + String greeting = service.getGreetings(name); + //String greeting2 = helloworldSca.getGreetings(name.toUpperCase()); + + Writer out = response.getWriter(); + out.write("Apache Tuscany Helloworld Web Sample"); + out.write("

Apache Tuscany Helloworld Web Sample

"); + out.write("This page displays the response got from HelloworldServiceBean, which is a Stateless EJB."); + out.write("
Parameter sent to HelloworldService.getGreeting: "+name); + out.write(greeting); + out.write("The following is got by invoking the HelloworldService SCA service provided by the HelloworldServiceBean"); + out.write("
Parameter sent to HelloworldService.getGreeting: "+name.toUpperCase()); + //out.write(greeting2); + out.write(""); + out.flush(); + out.close(); + } +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-nonenhanced/src/main/java/sample/ejb3/HelloworldService.java b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-nonenhanced/src/main/java/sample/ejb3/HelloworldService.java new file mode 100644 index 0000000000..0194d1870c --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-nonenhanced/src/main/java/sample/ejb3/HelloworldService.java @@ -0,0 +1,33 @@ +/* + * 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. + */ + +package sample.ejb3; + +import javax.ejb.Remote; + +/** + * HelloworldService EJB interface. + * + * @version $Rev$ $Date$ + */ + +@Remote +public interface HelloworldService { + String getGreetings(String name); +} diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-nonenhanced/src/main/webapp/WEB-INF/geronimo-web.xml b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-nonenhanced/src/main/webapp/WEB-INF/geronimo-web.xml new file mode 100644 index 0000000000..2563c8b7c8 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-nonenhanced/src/main/webapp/WEB-INF/geronimo-web.xml @@ -0,0 +1,49 @@ + + + + + + test + helloworld-web + 1.0 + car + + + + test + helloworld-ejb + 1.0 + jar + + + + + + helloworld-web + + ejb/HelloworldServiceBean + + test + helloworld-ejb + 1.0 + HelloworldServiceBean + + + \ No newline at end of file diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-nonenhanced/src/main/webapp/WEB-INF/web.xml b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-nonenhanced/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000000..628588a974 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-nonenhanced/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,41 @@ + + + + + + + Helloworld Web Sample + + + HelloworldEjbServlet + sample.HelloworldEjbServlet + + + + HelloworldEjbServlet + /HelloworldEjbServlet + + + + hello.html + + + diff --git a/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-nonenhanced/src/main/webapp/hello.html b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-nonenhanced/src/main/webapp/hello.html new file mode 100644 index 0000000000..69473543c9 --- /dev/null +++ b/sca-java-1.x/tags/1.6.1-RC2/itest/contribution-jee-samples/war-nonenhanced/src/main/webapp/hello.html @@ -0,0 +1,50 @@ + + + + +Apache Tuscany Helloworld Web Sample + + + + +

Apache Tuscany Helloworld Web Sample

+ +This web page posts the data to HelloworldEjbServlet. The servlet invokes HelloworldServiceBean, which is a Stateless EJB. +The EJB in turn invokes Helloworld SCA service through proxies injected into EJB fields. + +

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