Return-Path: Delivered-To: apmail-geronimo-scm-archive@www.apache.org Received: (qmail 51865 invoked from network); 26 Nov 2008 19:35:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Nov 2008 19:35:09 -0000 Received: (qmail 21907 invoked by uid 500); 26 Nov 2008 19:35:20 -0000 Delivered-To: apmail-geronimo-scm-archive@geronimo.apache.org Received: (qmail 21865 invoked by uid 500); 26 Nov 2008 19:35:20 -0000 Mailing-List: contact scm-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list scm@geronimo.apache.org Received: (qmail 21852 invoked by uid 99); 26 Nov 2008 19:35:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Nov 2008 11:35:20 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Nov 2008 19:33:52 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 511792388892; Wed, 26 Nov 2008 11:34:09 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r720956 - in /geronimo/plugins/tuscany/trunk/samples/helloworld-web: ./ src/ src/main/ src/main/java/ src/main/java/sample/ src/main/java/sample/ejb3/ src/main/webapp/ src/main/webapp/WEB-INF/ Date: Wed, 26 Nov 2008 19:34:09 -0000 To: scm@geronimo.apache.org From: vamsic007@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20081126193409.511792388892@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: vamsic007 Date: Wed Nov 26 11:34:08 2008 New Revision: 720956 URL: http://svn.apache.org/viewvc?rev=720956&view=rev Log: Helloworld Web sample application to invoke the HelloworldServiceBean from Helloworld EJB sample. Added: geronimo/plugins/tuscany/trunk/samples/helloworld-web/ geronimo/plugins/tuscany/trunk/samples/helloworld-web/pom.xml (with props) geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/ geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/ geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/java/ geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/java/sample/ geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/java/sample/HelloworldEjbServlet.java (with props) geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/java/sample/ejb3/ geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/java/sample/ejb3/HelloworldService.java (with props) geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/webapp/ geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/webapp/WEB-INF/ geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/webapp/WEB-INF/geronimo-web.xml (with props) geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/webapp/WEB-INF/web.composite (with props) geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/webapp/WEB-INF/web.xml (with props) geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/webapp/hello.html (with props) Added: geronimo/plugins/tuscany/trunk/samples/helloworld-web/pom.xml URL: http://svn.apache.org/viewvc/geronimo/plugins/tuscany/trunk/samples/helloworld-web/pom.xml?rev=720956&view=auto ============================================================================== --- geronimo/plugins/tuscany/trunk/samples/helloworld-web/pom.xml (added) +++ geronimo/plugins/tuscany/trunk/samples/helloworld-web/pom.xml Wed Nov 26 11:34:08 2008 @@ -0,0 +1,60 @@ + + + + 4.0.0 + + org.apache.geronimo.plugins + tuscany-parent + 1.0-SNAPSHOT + ../../pom.xml + + + helloworld-web + Geronimo Plugins :: Helloworld Web sample + war + + + + org.apache.tuscany.sca + tuscany-api + provided + + + org.apache.geronimo.specs + geronimo-servlet_2.5_spec + provided + + + org.apache.geronimo.specs + geronimo-ejb_3.0_spec + provided + + + + + + + org.apache.maven.plugins + maven-war-plugin + + + ${artifactId} + + Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-web/pom.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-web/pom.xml ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-web/pom.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/java/sample/HelloworldEjbServlet.java URL: http://svn.apache.org/viewvc/geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/java/sample/HelloworldEjbServlet.java?rev=720956&view=auto ============================================================================== --- geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/java/sample/HelloworldEjbServlet.java (added) +++ geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/java/sample/HelloworldEjbServlet.java Wed Nov 26 11:34:08 2008 @@ -0,0 +1,57 @@ +/* + * 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 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); + + 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(""); + out.flush(); + out.close(); + } +} Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/java/sample/HelloworldEjbServlet.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/java/sample/HelloworldEjbServlet.java ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/java/sample/HelloworldEjbServlet.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/java/sample/ejb3/HelloworldService.java URL: http://svn.apache.org/viewvc/geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/java/sample/ejb3/HelloworldService.java?rev=720956&view=auto ============================================================================== --- geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/java/sample/ejb3/HelloworldService.java (added) +++ geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/java/sample/ejb3/HelloworldService.java Wed Nov 26 11:34:08 2008 @@ -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); +} Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/java/sample/ejb3/HelloworldService.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/java/sample/ejb3/HelloworldService.java ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/java/sample/ejb3/HelloworldService.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/webapp/WEB-INF/geronimo-web.xml URL: http://svn.apache.org/viewvc/geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/webapp/WEB-INF/geronimo-web.xml?rev=720956&view=auto ============================================================================== --- geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/webapp/WEB-INF/geronimo-web.xml (added) +++ geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/webapp/WEB-INF/geronimo-web.xml Wed Nov 26 11:34:08 2008 @@ -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 Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/webapp/WEB-INF/geronimo-web.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/webapp/WEB-INF/geronimo-web.xml ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/webapp/WEB-INF/geronimo-web.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/webapp/WEB-INF/web.composite URL: http://svn.apache.org/viewvc/geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/webapp/WEB-INF/web.composite?rev=720956&view=auto ============================================================================== --- geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/webapp/WEB-INF/web.composite (added) +++ geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/webapp/WEB-INF/web.composite Wed Nov 26 11:34:08 2008 @@ -0,0 +1,29 @@ + + + + + + + + + Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/webapp/WEB-INF/web.composite ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/webapp/WEB-INF/web.composite ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/webapp/WEB-INF/web.composite ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/webapp/WEB-INF/web.xml URL: http://svn.apache.org/viewvc/geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/webapp/WEB-INF/web.xml?rev=720956&view=auto ============================================================================== --- geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/webapp/WEB-INF/web.xml (added) +++ geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/webapp/WEB-INF/web.xml Wed Nov 26 11:34:08 2008 @@ -0,0 +1,41 @@ + + + + + + + Helloworld Web Sample + + + HelloworldEjbServlet + sample.HelloworldEjbServlet + + + + HelloworldEjbServlet + /HelloworldEjbServlet + + + + hello.html + + + Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/webapp/WEB-INF/web.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/webapp/WEB-INF/web.xml ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/webapp/WEB-INF/web.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/webapp/hello.html URL: http://svn.apache.org/viewvc/geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/webapp/hello.html?rev=720956&view=auto ============================================================================== --- geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/webapp/hello.html (added) +++ geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/webapp/hello.html Wed Nov 26 11:34:08 2008 @@ -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: + +
+ +
+
+ + Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/webapp/hello.html ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/webapp/hello.html ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-web/src/main/webapp/hello.html ------------------------------------------------------------------------------ svn:mime-type = text/html