geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xiam...@apache.org
Subject svn commit: r941149 [1/2] - in /geronimo/samples/trunk/samples/javaee6: ./ webfragment-javaee6/ webfragment-javaee6/fragment1/ webfragment-javaee6/fragment1/src/ webfragment-javaee6/fragment1/src/main/ webfragment-javaee6/fragment1/src/main/java/ webfr...
Date Wed, 05 May 2010 05:15:33 GMT
Author: xiaming
Date: Wed May  5 05:15:31 2010
New Revision: 941149

URL: http://svn.apache.org/viewvc?rev=941149&view=rev
Log:
GERONIMO-5234 A simple shopping cart sample to demo web fragment feature of servlet 3.0

Added:
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/pom.xml   (with props)
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/src/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/src/main/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/src/main/java/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/src/main/java/org/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/src/main/java/org/apache/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/src/main/java/org/apache/geronimo/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/src/main/java/org/apache/geronimo/samples/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/src/main/java/org/apache/geronimo/samples/javaee6/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment1/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment1/FilterFragment1.java   (with props)
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment1/QueryAll.java   (with props)
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/src/main/resources/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/src/main/resources/META-INF/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/src/main/resources/META-INF/web-fragment.xml   (with props)
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/pom.xml   (with props)
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/java/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/java/org/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/java/org/apache/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/java/org/apache/geronimo/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/java/org/apache/geronimo/samples/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/java/org/apache/geronimo/samples/javaee6/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment2/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment2/BuyRecordItem.java   (with props)
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment2/FilterFragment2.java   (with props)
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment2/ShoppingCart.java   (with props)
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/resources/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/resources/META-INF/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/resources/META-INF/web-fragment.xml   (with props)
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/pom.xml   (with props)
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/java/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/java/org/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/java/org/apache/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/java/org/apache/geronimo/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/java/org/apache/geronimo/samples/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/java/org/apache/geronimo/samples/javaee6/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment3/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment3/FilterFragment3.java   (with props)
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment3/Payment.java   (with props)
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment3/ServletListener.java   (with props)
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/resources/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/resources/META-INF/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/resources/META-INF/web-fragment.xml   (with props)
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/pom.xml   (with props)
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-jetty/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-jetty/pom.xml   (with props)
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-jetty/src/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-jetty/src/main/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-jetty/src/main/plan/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-jetty/src/main/plan/plan.xml   (with props)
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-tomcat/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-tomcat/pom.xml   (with props)
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-tomcat/src/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-tomcat/src/main/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-tomcat/src/main/plan/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-tomcat/src/main/plan/plan.xml   (with props)
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-war/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-war/pom.xml   (with props)
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-war/src/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-war/src/main/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-war/src/main/java/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-war/src/main/java/org/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-war/src/main/java/org/apache/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-war/src/main/java/org/apache/geronimo/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-war/src/main/java/org/apache/geronimo/samples/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-war/src/main/java/org/apache/geronimo/samples/javaee6/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-war/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-war/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/WelcomePage.java   (with props)
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-war/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/messageRecord.java   (with props)
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-war/src/main/webapp/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-war/src/main/webapp/WEB-INF/
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-war/src/main/webapp/WEB-INF/geronimo-web.xml   (with props)
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-war/src/main/webapp/WEB-INF/web.xml   (with props)
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-war/src/main/webapp/header.html   (with props)
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-war/src/main/webapp/index.html   (with props)
    geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-war/src/main/webapp/sample-docu.jsp   (with props)
Modified:
    geronimo/samples/trunk/samples/javaee6/pom.xml

Modified: geronimo/samples/trunk/samples/javaee6/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/javaee6/pom.xml?rev=941149&r1=941148&r2=941149&view=diff
==============================================================================
--- geronimo/samples/trunk/samples/javaee6/pom.xml (original)
+++ geronimo/samples/trunk/samples/javaee6/pom.xml Wed May  5 05:15:31 2010
@@ -160,6 +160,7 @@
                 <module>fileupload-javaee6</module>
                 <module>converter-javaee6</module>
                 <module>jarresource-javaee6</module>
+                <module>webfragment-javaee6</module>
             </modules>
         </profile>
         <profile>
@@ -177,6 +178,7 @@
                 <module>fileupload-javaee6</module>
                 <module>converter-javaee6</module>
                 <module>jarresource-javaee6</module>
+                <module>webfragment-javaee6</module>
             </modules>
         </profile>
     </profiles>  

Added: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/pom.xml?rev=941149&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/pom.xml (added)
+++ geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/pom.xml Wed May  5 05:15:31 2010
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+    
+     http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+  <modelVersion>4.0.0</modelVersion>
+
+<parent>
+        <groupId>org.apache.geronimo.samples</groupId>
+        <artifactId>webfragment-javaee6</artifactId>
+        <version>3.0-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>fragment1</artifactId>
+    <name>Geronimo Samples :: webfragment-javaee6 :: fragment1</name>
+    <packaging>jar</packaging>
+
+    <description>Geronimo Samples. WEB Fragment Module 1</description>
+
+
+  <dependencies>
+  </dependencies>
+  </project>

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment1/FilterFragment1.java
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment1/FilterFragment1.java?rev=941149&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment1/FilterFragment1.java (added)
+++ geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment1/FilterFragment1.java Wed May  5 05:15:31 2010
@@ -0,0 +1,47 @@
+/**
+* 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 org.apache.geronimo.samples.javaee6.webfragment.fragment1;
+
+import java.io.IOException;
+
+import javax.servlet.Filter;
+import javax.servlet.FilterChain;
+import javax.servlet.FilterConfig;
+import javax.servlet.ServletException;
+import javax.servlet.ServletRequest;
+import javax.servlet.ServletResponse;
+
+public class FilterFragment1 implements Filter {
+    public void init(FilterConfig filterConfig) throws ServletException {
+    }   
+
+    public void doFilter(ServletRequest req, ServletResponse res,
+            FilterChain chain) throws IOException, ServletException {
+
+        String filterMessage = (String)req.getAttribute("filterMessage");
+        if (filterMessage == null) {
+            filterMessage = "";
+        }
+        filterMessage += "This Message is from fragment1 filter.This fragment mainly serves to query all the items.<br>";
+
+        req.setAttribute("filterMessage", filterMessage);
+        chain.doFilter(req, res);
+    }
+
+    public void destroy() {
+    }
+}

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment1/FilterFragment1.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment1/FilterFragment1.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment1/FilterFragment1.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment1/QueryAll.java
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment1/QueryAll.java?rev=941149&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment1/QueryAll.java (added)
+++ geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment1/QueryAll.java Wed May  5 05:15:31 2010
@@ -0,0 +1,103 @@
+/**
+* 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 org.apache.geronimo.samples.javaee6.webfragment.fragment1;
+
+import java.io.IOException;
+import java.io.PrintWriter;
+import java.util.Random;
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+public class QueryAll extends HttpServlet {
+   
+    /** 
+     * Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
+     * @param request servlet request
+     * @param response servlet response
+     * @throws ServletException if a servlet-specific error occurs
+     * @throws IOException if an I/O error occurs
+     */
+    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
+    throws ServletException, IOException {
+        response.setContentType("text/html;charset=UTF-8");
+        PrintWriter out = response.getWriter();
+        try {
+            out.println("<html>");
+            out.println("<head>");
+            out.println("<title>Servlet QueryAll</title>");  
+            out.println("</head>");
+            out.println("<body>");
+            out.println("<h1>Query Result:</h1>");
+            out.println("<table border=1>");
+            out.println("<tr><th>ID</th><th>Name</th><th>Price</th></tr>");
+            for(int i=1;i<=10;i++){
+            //int randomPrice=(new Random().nextInt())%100;
+            out.println("<tr><td>"+i+"</td><td>Item"+i+"</td><td>"+(i*10)+"</td></tr>");
+            }
+            out.println("</table>");
+            out.println("<form action=\"ShoppingCart\">");
+            out.println("<h3>I wanna buy:</h3><br>ID:<input type=\"text\" name=\"ID\"/>Quantity:<input type=\"text\" name=\"quantity\"/>");
+            out.println("<br><input type=\"submit\" name=\"addToCart\" value=\"Add To Cart\">" );
+            out.println("</form>");
+            out.println("</body>");
+            out.println("</html>");
+           
+        } finally { 
+            out.close();
+        }
+    } 
+
+    // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
+    /** 
+     * Handles the HTTP <code>GET</code> method.
+     * @param request servlet request
+     * @param response servlet response
+     * @throws ServletException if a servlet-specific error occurs
+     * @throws IOException if an I/O error occurs
+     */
+    @Override
+    protected void doGet(HttpServletRequest request, HttpServletResponse response)
+    throws ServletException, IOException {
+        processRequest(request, response);
+    } 
+
+    /** 
+     * Handles the HTTP <code>POST</code> method.
+     * @param request servlet request
+     * @param response servlet response
+     * @throws ServletException if a servlet-specific error occurs
+     * @throws IOException if an I/O error occurs
+     */
+    @Override
+    protected void doPost(HttpServletRequest request, HttpServletResponse response)
+    throws ServletException, IOException {
+        processRequest(request, response);
+    }
+
+    /** 
+     * Returns a short description of the servlet.
+     * @return a String containing servlet description
+     */
+    @Override
+    public String getServletInfo() {
+        return "Short description";
+    }// </editor-fold>
+
+}

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment1/QueryAll.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment1/QueryAll.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment1/QueryAll.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/src/main/resources/META-INF/web-fragment.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/src/main/resources/META-INF/web-fragment.xml?rev=941149&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/src/main/resources/META-INF/web-fragment.xml (added)
+++ geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/src/main/resources/META-INF/web-fragment.xml Wed May  5 05:15:31 2010
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+<web-fragment metadata-complete="true" version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-fragment_3_0.xsd">
+  <name>fragment1</name>
+  <filter>
+    <icon/>
+    <filter-name>FilterFragment1</filter-name>
+    <filter-class>org.apache.geronimo.samples.javaee6.webfragment.fragment1.FilterFragment1</filter-class>
+   </filter>
+  <filter-mapping>
+    <filter-name>FilterFragment1</filter-name>
+    <url-pattern>/messageRecord</url-pattern>
+    <dispatcher>REQUEST</dispatcher>
+  </filter-mapping>
+  <servlet>
+      <servlet-name>QueryAll</servlet-name>
+      <servlet-class>org.apache.geronimo.samples.javaee6.webfragment.fragment1.QueryAll</servlet-class>
+  </servlet>
+  <servlet-mapping>
+      <servlet-name>QueryAll</servlet-name>
+      <url-pattern>/QueryAll</url-pattern>
+  </servlet-mapping>
+</web-fragment>

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/src/main/resources/META-INF/web-fragment.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/src/main/resources/META-INF/web-fragment.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment1/src/main/resources/META-INF/web-fragment.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/pom.xml?rev=941149&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/pom.xml (added)
+++ geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/pom.xml Wed May  5 05:15:31 2010
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+    
+     http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+  <modelVersion>4.0.0</modelVersion>
+
+<parent>
+        <groupId>org.apache.geronimo.samples</groupId>
+        <artifactId>webfragment-javaee6</artifactId>
+        <version>3.0-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>fragment2</artifactId>
+    <name>Geronimo Samples :: webfragment-javaee6 :: fragment2</name>
+    <packaging>jar</packaging>
+
+    <description>Geronimo Samples. WEB Fragment Module 2</description>
+
+
+  <dependencies>
+  </dependencies>
+  </project>

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment2/BuyRecordItem.java
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment2/BuyRecordItem.java?rev=941149&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment2/BuyRecordItem.java (added)
+++ geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment2/BuyRecordItem.java Wed May  5 05:15:31 2010
@@ -0,0 +1,46 @@
+/**
+* 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 org.apache.geronimo.samples.javaee6.webfragment.fragment2;
+
+public class BuyRecordItem {
+    int ID;
+    int quantity;
+
+    public BuyRecordItem(int ID, int quantity) {
+        this.ID = ID;
+        this.quantity = quantity;
+    }
+
+    public int getID() {
+        return ID;
+    }
+
+    public void setID(int ID) {
+        this.ID = ID;
+    }
+
+    public int getQuantity() {
+        return quantity;
+    }
+
+    public void setQuantity(int quantity) {
+        this.quantity = quantity;
+    }
+
+
+}

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment2/BuyRecordItem.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment2/BuyRecordItem.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment2/BuyRecordItem.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment2/FilterFragment2.java
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment2/FilterFragment2.java?rev=941149&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment2/FilterFragment2.java (added)
+++ geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment2/FilterFragment2.java Wed May  5 05:15:31 2010
@@ -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 org.apache.geronimo.samples.javaee6.webfragment.fragment2;
+
+import java.io.IOException;
+
+import javax.servlet.DispatcherType;
+import javax.servlet.Filter;
+import javax.servlet.FilterChain;
+import javax.servlet.FilterConfig;
+import javax.servlet.ServletException;
+import javax.servlet.ServletRequest;
+import javax.servlet.ServletResponse;
+import javax.servlet.annotation.WebFilter;
+
+@WebFilter(urlPatterns={ "/" }, dispatcherTypes= { DispatcherType.REQUEST })
+public class FilterFragment2 implements Filter {
+    public void init(FilterConfig filterConfig) throws ServletException {
+    }   
+
+    public void doFilter(ServletRequest req, ServletResponse res,
+            FilterChain chain) throws IOException, ServletException {
+
+        String filterMessage = (String)req.getAttribute("filterMessage");
+        if (filterMessage == null) {
+            filterMessage = "";
+        }
+        filterMessage += "This Message is from fragment2 filter.This fragment mainly serves to add items to shopping cart.<br>";
+
+        req.setAttribute("filterMessage", filterMessage);
+        chain.doFilter(req, res);
+    }
+
+    public void destroy() {
+    }
+}

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment2/FilterFragment2.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment2/FilterFragment2.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment2/FilterFragment2.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment2/ShoppingCart.java
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment2/ShoppingCart.java?rev=941149&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment2/ShoppingCart.java (added)
+++ geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment2/ShoppingCart.java Wed May  5 05:15:31 2010
@@ -0,0 +1,136 @@
+/**
+* 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 org.apache.geronimo.samples.javaee6.webfragment.fragment2;
+
+import java.io.IOException;
+import java.io.PrintWriter;
+import java.util.ArrayList;
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+/**
+ *
+ * @author Administrator
+ */
+public class ShoppingCart extends HttpServlet {
+
+    ArrayList<BuyRecordItem> shoppingList;
+
+    /**
+     * Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
+     * @param request servlet request
+     * @param response servlet response
+     * @throws ServletException if a servlet-specific error occurs
+     * @throws IOException if an I/O error occurs
+     */
+    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
+            throws ServletException, IOException {
+        response.setContentType("text/html;charset=UTF-8");
+        PrintWriter out = response.getWriter();
+
+        if (null == request.getSession().getAttribute("shoppingList")) {
+            shoppingList = new ArrayList<BuyRecordItem>();
+        } else {
+            shoppingList = (ArrayList) request.getSession().getAttribute("shoppingList");
+        }
+        BuyRecordItem recordItem = new BuyRecordItem(Integer.parseInt(request.getParameter("ID")), Integer.parseInt(request.getParameter("quantity")));
+        addToCart(recordItem, shoppingList);
+        request.getSession().setAttribute("shoppingList", shoppingList);
+        try {
+            out.println("<html>");
+            out.println("<head>");
+            out.println("<title>Servlet ShoppingCart</title>");
+            out.println("</head>");
+            out.println("<body>");
+            out.println("<h1>You have already bought:</h1>");
+            out.println("<table border=1>");
+            out.println("<tr><th>ID</th><th>Name</th><th>Price</th><th>Quantity</th><th>Cost</th></tr>");
+            int totalCost = 0;
+            for (BuyRecordItem record : shoppingList) {
+                int ID = record.getID();
+                int quantity = record.getQuantity();
+                int cost = ID * 10 * quantity;
+                totalCost += cost;
+                out.println("<tr><td>" + ID + "</td><td>Item" + ID + "</td><td>" + (ID * 10) + "</td><td>" + quantity + "</td><td>" + cost + "</td></tr>");
+            }
+            out.println("<tr><h2>The total cost is:<font color=green>" + totalCost + "</font><h2></tr>");
+            out.println("</table>");
+            out.println("<a href=\"QueryAll\"><h2>>>Continue shopping!<h2></a><br>");
+            out.println("<a href=\"Payment?totalCost="+totalCost+"\">>>Go to pay!</a>");
+            out.println("</body>");
+            out.println("</html>");
+        } finally {
+            out.close();
+        }
+    }
+
+    // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
+    /** 
+     * Handles the HTTP <code>GET</code> method.
+     * @param request servlet request
+     * @param response servlet response
+     * @throws ServletException if a servlet-specific error occurs
+     * @throws IOException if an I/O error occurs
+     */
+    @Override
+    protected void doGet(HttpServletRequest request, HttpServletResponse response)
+            throws ServletException, IOException {
+        processRequest(request, response);
+    }
+
+    /** 
+     * Handles the HTTP <code>POST</code> method.
+     * @param request servlet request
+     * @param response servlet response
+     * @throws ServletException if a servlet-specific error occurs
+     * @throws IOException if an I/O error occurs
+     */
+    @Override
+    protected void doPost(HttpServletRequest request, HttpServletResponse response)
+            throws ServletException, IOException {
+        processRequest(request, response);
+    }
+
+    /** 
+     * Returns a short description of the servlet.
+     * @return a String containing servlet description
+     */
+    @Override
+    public String getServletInfo() {
+        return "Short description";
+    }// </editor-fold>
+
+    private void addToCart(BuyRecordItem currentRecordItem, ArrayList<BuyRecordItem> shoppingList) {
+        int currentID=currentRecordItem.getID();
+        int currentQuantity=currentRecordItem.getQuantity();
+        boolean exist=false;
+        for(BuyRecordItem record:shoppingList)
+        {
+        if(currentID==record.getID())
+        {
+              record.setQuantity(record.getQuantity()+currentQuantity);
+              exist=true;
+              break;
+        }
+          
+        }
+        if(!exist)
+        this.shoppingList.add(currentRecordItem);
+    }
+}

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment2/ShoppingCart.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment2/ShoppingCart.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment2/ShoppingCart.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/resources/META-INF/web-fragment.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/resources/META-INF/web-fragment.xml?rev=941149&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/resources/META-INF/web-fragment.xml (added)
+++ geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/resources/META-INF/web-fragment.xml Wed May  5 05:15:31 2010
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+<web-fragment version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-fragment_3_0.xsd">
+    <name>fragment2</name>
+    <filter>
+        <icon/>
+        <filter-name>FilterFragment2</filter-name>
+        <filter-class>org.apache.geronimo.samples.javaee6.webfragment.fragment2.FilterFragment2</filter-class>
+    </filter>
+    <filter-mapping>
+        <filter-name>FilterFragment2</filter-name>
+        <url-pattern>/messageRecord</url-pattern>
+        <dispatcher>REQUEST</dispatcher>
+    </filter-mapping>
+    <servlet>
+      <servlet-name>ShoppingCart</servlet-name>
+      <servlet-class>org.apache.geronimo.samples.javaee6.webfragment.fragment2.ShoppingCart</servlet-class>
+  </servlet>
+  <servlet-mapping>
+      <servlet-name>ShoppingCart</servlet-name>
+      <url-pattern>/ShoppingCart</url-pattern>
+  </servlet-mapping>
+</web-fragment>

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/resources/META-INF/web-fragment.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/resources/META-INF/web-fragment.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment2/src/main/resources/META-INF/web-fragment.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/pom.xml?rev=941149&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/pom.xml (added)
+++ geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/pom.xml Wed May  5 05:15:31 2010
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+    
+     http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+  <modelVersion>4.0.0</modelVersion>
+
+<parent>
+        <groupId>org.apache.geronimo.samples</groupId>
+        <artifactId>webfragment-javaee6</artifactId>
+        <version>3.0-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>fragment3</artifactId>
+    <name>Geronimo Samples :: webfragment-javaee6 :: fragment3</name>
+    <packaging>jar</packaging>
+
+    <description>Geronimo Samples. WEB Fragment Module 3</description>
+
+  <dependencies>
+  </dependencies>
+</project>

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment3/FilterFragment3.java
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment3/FilterFragment3.java?rev=941149&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment3/FilterFragment3.java (added)
+++ geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment3/FilterFragment3.java Wed May  5 05:15:31 2010
@@ -0,0 +1,51 @@
+/**
+* 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 org.apache.geronimo.samples.javaee6.webfragment.fragment3;
+
+import java.io.IOException;
+
+import javax.servlet.DispatcherType;
+import javax.servlet.Filter;
+import javax.servlet.FilterChain;
+import javax.servlet.FilterConfig;
+import javax.servlet.ServletException;
+import javax.servlet.ServletRequest;
+import javax.servlet.ServletResponse;
+import javax.servlet.annotation.WebFilter;
+
+@WebFilter(urlPatterns={ "/" }, dispatcherTypes= { DispatcherType.REQUEST })
+public class FilterFragment3 implements Filter {
+    public void init(FilterConfig filterConfig) throws ServletException {
+    }
+
+    public void doFilter(ServletRequest req, ServletResponse res,
+            FilterChain chain) throws IOException, ServletException {
+
+        String filterMessage = (String)req.getAttribute("filterMessage");
+        if (filterMessage == null) {
+            filterMessage = "";
+        }
+        filterMessage += "This Message is from fragment3 filter.This fragment mainly serves to pay for the items you bought.<br> ";
+
+        req.setAttribute("filterMessage", filterMessage);
+        chain.doFilter(req, res);
+    }
+
+    public void destroy() {
+    }
+}
+

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment3/FilterFragment3.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment3/FilterFragment3.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment3/FilterFragment3.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment3/Payment.java
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment3/Payment.java?rev=941149&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment3/Payment.java (added)
+++ geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment3/Payment.java Wed May  5 05:15:31 2010
@@ -0,0 +1,95 @@
+/**
+* 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 org.apache.geronimo.samples.javaee6.webfragment.fragment3;
+
+import java.io.IOException;
+import java.io.PrintWriter;
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+
+public class Payment extends HttpServlet {
+   
+    /** 
+     * Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
+     * @param request servlet request
+     * @param response servlet response
+     * @throws ServletException if a servlet-specific error occurs
+     * @throws IOException if an I/O error occurs
+     */
+    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
+    throws ServletException, IOException {
+        response.setContentType("text/html;charset=UTF-8");
+        PrintWriter out = response.getWriter();
+        try {
+            int totalCost=Integer.parseInt(request.getParameter("totalCost"));
+            out.println("<html>");
+            out.println("<head>");
+            out.println("<title>Servlet Payment</title>");  
+            out.println("</head>");
+            out.println("<body>");
+            out.println("<h1>Dear Customer,<br>You have to pay <font color=green>"+totalCost+"</font>.<br></h1>");
+            out.println("<h1>Congratulations!You have successfully finished the payment process.</h1>");
+            out.println("<a href=\"messageRecord\">See message generated from different fragments.</a>");
+            out.println("</body>");
+            out.println("</html>");
+
+        } finally { 
+            out.close();
+        }
+    } 
+
+    // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
+    /** 
+     * Handles the HTTP <code>GET</code> method.
+     * @param request servlet request
+     * @param response servlet response
+     * @throws ServletException if a servlet-specific error occurs
+     * @throws IOException if an I/O error occurs
+     */
+    @Override
+    protected void doGet(HttpServletRequest request, HttpServletResponse response)
+    throws ServletException, IOException {
+        processRequest(request, response);
+    } 
+
+    /** 
+     * Handles the HTTP <code>POST</code> method.
+     * @param request servlet request
+     * @param response servlet response
+     * @throws ServletException if a servlet-specific error occurs
+     * @throws IOException if an I/O error occurs
+     */
+    @Override
+    protected void doPost(HttpServletRequest request, HttpServletResponse response)
+    throws ServletException, IOException {
+        processRequest(request, response);
+    }
+
+    /** 
+     * Returns a short description of the servlet.
+     * @return a String containing servlet description
+     */
+    @Override
+    public String getServletInfo() {
+        return "Short description";
+    }// </editor-fold>
+
+}

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment3/Payment.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment3/Payment.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment3/Payment.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment3/ServletListener.java
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment3/ServletListener.java?rev=941149&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment3/ServletListener.java (added)
+++ geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment3/ServletListener.java Wed May  5 05:15:31 2010
@@ -0,0 +1,35 @@
+/**
+* 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 org.apache.geronimo.samples.javaee6.webfragment.fragment3;
+
+import javax.servlet.ServletContext;
+import javax.servlet.ServletContextEvent;
+import javax.servlet.ServletContextListener;
+
+
+public class ServletListener implements ServletContextListener {
+
+    public void contextInitialized(ServletContextEvent sce) {
+        ServletContext sc = sce.getServletContext();
+        sc.setAttribute("listenerMessage", "<br>This Message is from fragment3 listener.This fragment mainly serves to pay for the items you bought.");
+    }
+
+    public void contextDestroyed(ServletContextEvent sce) {
+
+    }
+}

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment3/ServletListener.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment3/ServletListener.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/java/org/apache/geronimo/samples/javaee6/webfragment/fragment3/ServletListener.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/resources/META-INF/web-fragment.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/resources/META-INF/web-fragment.xml?rev=941149&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/resources/META-INF/web-fragment.xml (added)
+++ geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/resources/META-INF/web-fragment.xml Wed May  5 05:15:31 2010
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+<web-fragment version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-fragment_3_0.xsd">
+  <name>fragment3</name>
+      <filter>
+        <icon/>
+        <filter-name>FilterFragment3</filter-name>
+        <filter-class>org.apache.geronimo.samples.javaee6.webfragment.fragment3.FilterFragment3</filter-class>
+    </filter>
+    <filter-mapping>
+        <filter-name>FilterFragment3</filter-name>
+        <url-pattern>/messageRecord</url-pattern>
+        <dispatcher>REQUEST</dispatcher>
+    </filter-mapping>
+    <servlet>
+      <servlet-name>Payment</servlet-name>
+      <servlet-class>org.apache.geronimo.samples.javaee6.webfragment.fragment3.Payment</servlet-class>
+  </servlet>
+  <servlet-mapping>
+      <servlet-name>Payment</servlet-name>
+      <url-pattern>/Payment</url-pattern>
+  </servlet-mapping>
+    <listener>
+        <description>ServletContextListener</description>
+        <listener-class>org.apache.geronimo.samples.javaee6.webfragment.fragment3.ServletListener</listener-class>
+    </listener>
+</web-fragment>

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/resources/META-INF/web-fragment.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/resources/META-INF/web-fragment.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/fragment3/src/main/resources/META-INF/web-fragment.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/pom.xml?rev=941149&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/pom.xml (added)
+++ geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/pom.xml Wed May  5 05:15:31 2010
@@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+    
+     http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+--><!-- $Rev$ $Date$ --><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    
+    <modelVersion>4.0.0</modelVersion>
+    
+    <parent>
+        <groupId>org.apache.geronimo.samples</groupId>
+        <artifactId>javaee6</artifactId>
+        <version>3.0-SNAPSHOT</version>
+    </parent>
+    
+    <artifactId>webfragment-javaee6</artifactId>
+    <name>Geronimo Samples :: webfragment-javaee6</name>
+    <packaging>pom</packaging>
+    
+    <description>
+        Geronimo WebFragment-javaee6 sample created from an archetype.
+    </description> 
+  
+
+   <build>
+        <plugins>
+            <plugin>
+                <artifactId>maven-site-plugin</artifactId>
+                <inherited>false</inherited>
+                <configuration>
+                  <outputDirectory>${project.basedir}/docs</outputDirectory>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+    <profiles>
+        <profile>
+            <id>default</id>
+            <activation>
+                <activeByDefault>true</activeByDefault>
+            </activation>
+             <modules>
+		        <module>fragment1</module>
+                <module>fragment2</module>
+                <module>fragment2</module>
+                <module>webfragment-javaee6-war</module>	            
+                <module>webfragment-javaee6-tomcat</module>       
+                <module>webfragment-javaee6-jetty</module>      
+            </modules>
+        </profile>
+        <profile>
+            <id>no-plugin</id>
+            <activation>
+                <activeByDefault>false</activeByDefault>        
+                <property>
+                    <name>buildPlugin</name>
+                    <value>false</value>
+                </property>        
+            </activation>
+            <modules>
+		        <module>fragment1</module>
+                <module>fragment2</module>
+                <module>fragment2</module>
+                <module>webfragment-javaee6-war</module>                
+            </modules>
+        </profile>
+    </profiles>   
+</project>

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-jetty/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-jetty/pom.xml?rev=941149&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-jetty/pom.xml (added)
+++ geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-jetty/pom.xml Wed May  5 05:15:31 2010
@@ -0,0 +1,126 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+    
+     http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.geronimo.samples</groupId>
+        <artifactId>webfragment-javaee6</artifactId>
+        <version>3.0-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>webfragment-javaee6-jetty</artifactId>
+    <name>Geronimo Samples :: webfragment-javaee6 Plugin for Jetty</name>
+    <packaging>car</packaging>
+
+    <description>Geronimo Samples. webfragment-javaee6 Plugin for Jetty</description>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.geronimo.samples</groupId>
+            <artifactId>webfragment-javaee6-war</artifactId>
+            <version>3.0-SNAPSHOT</version>
+            <type>war</type>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.geronimo.configs</groupId>
+            <artifactId>${jetty}-deployer</artifactId>
+            <version>${geronimoVersion}</version>
+            <type>car</type>
+            <scope>provided</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.geronimo.configs</groupId>
+            <artifactId>jasper-deployer</artifactId>
+            <version>${geronimoVersion}</version>
+            <type>car</type>
+            <scope>provided</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.geronimo.configs</groupId>
+            <artifactId>jasper</artifactId>
+            <version>${geronimoVersion}</version>
+            <type>car</type>
+            <scope>provided</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.geronimo.configs</groupId>
+            <artifactId>openejb-deployer</artifactId>
+            <version>${geronimoVersion}</version>
+            <type>car</type>
+            <scope>provided</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.geronimo.configs</groupId>
+            <artifactId>persistence-jpa20-deployer</artifactId>
+            <version>${geronimoVersion}</version>
+            <type>car</type>
+            <scope>provided</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <resources>
+            <resource>
+                <directory>${pom.basedir}/src/main/resources</directory>
+                <filtering>true</filtering>
+            </resource>
+        </resources>
+        
+        <plugins>
+            <plugin>
+                <groupId>org.apache.geronimo.buildsupport</groupId>
+                <artifactId>car-maven-plugin</artifactId>
+                <configuration>
+                    <deploymentConfigs>
+                        <deploymentConfig>${gbeanDeployer}</deploymentConfig>
+                        <deploymentConfig>${j2eeDeployer}</deploymentConfig>
+                        <deploymentConfig>${jettyDeployer}</deploymentConfig>
+                        <deploymentConfig>${jasperDeployer}</deploymentConfig>
+                        <deploymentConfig>${openejbDeployer}</deploymentConfig>
+                        <deploymentConfig>${jpaDeployer}</deploymentConfig>
+                    </deploymentConfigs>
+                    <module>
+                        <groupId>org.apache.geronimo.samples</groupId>
+                        <artifactId>webfragment-javaee6-war</artifactId>
+                        <version>3.0-SNAPSHOT</version>
+                        <type>war</type>
+                    </module>
+                    <useMavenDependencies>
+                        <value>true</value>
+                        <includeVersion>true</includeVersion>
+                    </useMavenDependencies>
+                    <category>Sample</category>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>
+

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-jetty/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-jetty/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-jetty/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-jetty/src/main/plan/plan.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-jetty/src/main/plan/plan.xml?rev=941149&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-jetty/src/main/plan/plan.xml (added)
+++ geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-jetty/src/main/plan/plan.xml Wed May  5 05:15:31 2010
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+    
+     http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+
+<!-- $Rev$ $Date$ -->
+<application xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-2.0">
+
+   <dep:environment xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
+      <dep:moduleId>
+         <dep:groupId>${pom.groupId}</dep:groupId>
+         <dep:artifactId>${pom.artifactId}</dep:artifactId>
+         <dep:version>3.0-SNAPSHOT</dep:version>
+         <dep:type>car</dep:type>
+      </dep:moduleId>
+
+   </dep:environment>
+   
+</application>

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-jetty/src/main/plan/plan.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-jetty/src/main/plan/plan.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-jetty/src/main/plan/plan.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-tomcat/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-tomcat/pom.xml?rev=941149&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-tomcat/pom.xml (added)
+++ geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-tomcat/pom.xml Wed May  5 05:15:31 2010
@@ -0,0 +1,126 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+    
+     http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.geronimo.samples</groupId>
+        <artifactId>webfragment-javaee6</artifactId>
+        <version>3.0-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>wefFragment-javaee6-tomcat</artifactId>
+    <name>Geronimo Samples :: webfragment-javaee6 Plugin for Tomcat</name>
+    <packaging>car</packaging>
+
+    <description>Geronimo Samples. webfragment-javaee6 Plugin for Tomcat</description>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.geronimo.samples</groupId>
+            <artifactId>webfragment-javaee6-war</artifactId>
+            <version>${version}</version>
+            <type>war</type>
+        </dependency>
+        
+        <dependency>
+            <groupId>org.apache.geronimo.configs</groupId>
+            <artifactId>tomcat6-deployer</artifactId>
+            <version>${geronimoVersion}</version>
+            <type>car</type>
+            <scope>provided</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.geronimo.configs</groupId>
+            <artifactId>jasper-deployer</artifactId>
+            <version>${geronimoVersion}</version>
+            <type>car</type>
+            <scope>provided</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.geronimo.configs</groupId>
+            <artifactId>jasper</artifactId>
+            <version>${geronimoVersion}</version>
+            <type>car</type>
+            <scope>provided</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.geronimo.configs</groupId>
+            <artifactId>openejb-deployer</artifactId>
+            <version>${geronimoVersion}</version>
+            <type>car</type>
+            <scope>provided</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.geronimo.configs</groupId>
+            <artifactId>persistence-jpa20-deployer</artifactId>
+            <version>${geronimoVersion}</version>
+            <type>car</type>
+            <scope>provided</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <resources>
+            <resource>
+                <directory>${pom.basedir}/src/main/resources</directory>
+                <filtering>true</filtering>
+            </resource>
+        </resources>
+        
+        <plugins>
+            <plugin>
+                <groupId>org.apache.geronimo.buildsupport</groupId>
+                <artifactId>car-maven-plugin</artifactId>
+                <configuration>
+                    <deploymentConfigs>
+                        <deploymentConfig>${gbeanDeployer}</deploymentConfig>
+                        <deploymentConfig>${j2eeDeployer}</deploymentConfig>
+                        <deploymentConfig>${tomcatDeployer}</deploymentConfig>
+                        <deploymentConfig>${jasperDeployer}</deploymentConfig>
+                        <deploymentConfig>${openejbDeployer}</deploymentConfig>
+                        <deploymentConfig>${jpaDeployer}</deploymentConfig>
+                    </deploymentConfigs>
+                    <module>
+                        <groupId>org.apache.geronimo.samples</groupId>
+                        <artifactId>webfragment-javaee6-war</artifactId>
+                        <version>${version}</version>
+                        <type>war</type>
+                    </module>
+                    <useMavenDependencies>
+                        <value>true</value>
+                        <includeVersion>true</includeVersion>
+                    </useMavenDependencies>
+                    <category>Sample</category>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+    
+</project>
+

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-tomcat/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-tomcat/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-tomcat/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-tomcat/src/main/plan/plan.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-tomcat/src/main/plan/plan.xml?rev=941149&view=auto
==============================================================================
--- geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-tomcat/src/main/plan/plan.xml (added)
+++ geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-tomcat/src/main/plan/plan.xml Wed May  5 05:15:31 2010
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+    
+     http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+
+<!-- $Rev$ $Date$ -->
+<application xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-2.0">
+
+   <dep:environment xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
+      <dep:moduleId>
+         <dep:groupId>${pom.groupId}</dep:groupId>
+         <dep:artifactId>${pom.artifactId}</dep:artifactId>
+         <dep:version>3.0-SNAPSHOT</dep:version>
+         <dep:type>car</dep:type>
+      </dep:moduleId>
+
+   </dep:environment>
+   
+</application>

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-tomcat/src/main/plan/plan.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-tomcat/src/main/plan/plan.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/trunk/samples/javaee6/webfragment-javaee6/webfragment-javaee6-tomcat/src/main/plan/plan.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml



Mime
View raw message