geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cjbly...@apache.org
Subject svn commit: r518744 [3/3] - in /geronimo/daytrader/branches/ejb3/modules: ejb/ ejb/src/main/java/org/apache/geronimo/samples/daytrader/ ejb/src/main/java/org/apache/geronimo/samples/daytrader/ejb3/ ejb/src/main/java/org/apache/geronimo/samples/daytrade...
Date Thu, 15 Mar 2007 20:06:20 GMT
Added: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EJBUpdate.java
URL: http://svn.apache.org/viewvc/geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EJBUpdate.java?view=auto&rev=518744
==============================================================================
--- geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EJBUpdate.java (added)
+++ geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EJBUpdate.java Thu Mar 15 13:06:17 2007
@@ -0,0 +1,79 @@
+package org.apache.geronimo.samples.daytrader.web.prims.ejb3;
+
+import org.apache.geronimo.samples.daytrader.ejb3.prims.QuoteFacadeLocal;
+import org.apache.geronimo.samples.daytrader.QuoteDataBean;
+import java.io.*;
+import javax.ejb.EJB;
+
+import javax.servlet.*;
+import javax.servlet.http.*;
+
+/**
+ *
+ * @author Rob
+ * @version
+ */
+public class PingServlet2Session2EJBUpdate extends HttpServlet {
+    
+    @EJB
+    private QuoteFacadeLocal quoteFacade; 
+    
+    private static String header = "<HTML><HEAD><TITLE>EJB3 Primitives - PingServlet2Session2EJBUpdate</TITLE><LINK href=\"prim.css\" rel=\"stylesheet\" type=\"text/css\" /></HEAD><BODY><H3>PingServlet2Session2EJBUpdate</H3><BR>\n<TABLE class=\"table_1\"><TR class=\"row_1\"><TD>Updated Quotes:</TD></TR>";
+    private static String footer = "</TABLE>\n</BODY></HTML>";
+    
+    /** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
+     * @param request servlet request
+     * @param response servlet response
+     */
+    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
+    throws ServletException, IOException {
+        PrintWriter out = response.getWriter();        
+                response.setContentType("text/html;charset=UTF-8");
+
+		out.println(header);
+		int iterations = StaticUtils.getIterations(request);
+                String prefix = StaticUtils.getQuotePrefix(request);
+		
+		for (int i = 0; i < iterations; i++){			
+                        String quoteSymbol = prefix + ':' + i;
+                                                
+                        QuoteDataBean quote = quoteFacade.find(quoteSymbol);
+                        
+                        if (quote != null){
+                            quote.setPrice(StaticUtils.getRandomBigDecimal(1000));
+                            quoteFacade.edit(quote);
+                            out.println("<TR class=\"row_2\"><TD>" + quote.getSymbol() + " - " + quote.getPrice() + "</TD></TR>");
+                        } else {
+                            out.println("<TR class=\"row_2\"><TD>" + quote.getSymbol() + " NOT FOUND</TD></TR>");
+                        }
+			
+		}
+		out.println(footer);
+    }
+    
+    // <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
+     */
+    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
+     */
+    protected void doPost(HttpServletRequest request, HttpServletResponse response)
+    throws ServletException, IOException {
+        processRequest(request, response);
+    }
+    
+    /** Returns a short description of the servlet.
+     */
+    public String getServletInfo() {
+        return "Short description";
+    }
+    // </editor-fold>
+}

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EJBUpdate.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EJBUpdate.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EJBUpdate.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity.java
URL: http://svn.apache.org/viewvc/geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity.java?view=auto&rev=518744
==============================================================================
--- geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity.java (added)
+++ geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity.java Thu Mar 15 13:06:17 2007
@@ -0,0 +1,72 @@
+package org.apache.geronimo.samples.daytrader.web.prims.ejb3;
+
+import org.apache.geronimo.samples.daytrader.ejb3.prims.AccountFacadeLocal;
+import org.apache.geronimo.samples.daytrader.AccountDataBean;
+import java.io.*;
+import java.net.*;
+import java.util.List;
+import javax.ejb.EJB;
+
+import javax.servlet.*;
+import javax.servlet.http.*;
+
+/**
+ *
+ * @author jstecher
+ * @version
+ */
+public class PingServlet2Session2Entity extends HttpServlet {
+
+    @EJB
+    private AccountFacadeLocal accountFacade; 
+    
+    private static String header = "<HTML><HEAD><TITLE>EJB3 Primitives - PingServlet2Session2Entity</TITLE><LINK href=\"prim.css\" rel=\"stylesheet\" type=\"text/css\" /></HEAD><BODY><H3>PingServlet2Session2Entity</H3><BR>\n<TABLE class=\"table_1\"><TR class=\"row_1\"><TD>Account ID</TD><TD>Balance</TD></TR>";
+    private static String footer = "</TABLE>\n</BODY></HTML>";
+    
+    /** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
+     * @param request servlet request
+     * @param response servlet response
+     */
+    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
+    throws ServletException, IOException {
+        PrintWriter out = response.getWriter();        
+                response.setContentType("text/html;charset=UTF-8");
+
+		out.println(header);
+		int iterations = StaticUtils.getIterations(request);
+		
+		for (int i = 0; i < iterations; i++){			
+                        AccountDataBean ae = accountFacade.find(new Integer(StaticUtils.getRandomAccountID()));
+                                        
+			out.println("<TR class=\"row_2\"><TD>" + ae.getAccountID() + "</TD><TD>" + ae.getBalance() + "</TD</TR>");
+			
+		}
+		out.println(footer);
+    }
+    
+    // <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
+     */
+    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
+     */
+    protected void doPost(HttpServletRequest request, HttpServletResponse response)
+    throws ServletException, IOException {
+        processRequest(request, response);
+    }
+    
+    /** Returns a short description of the servlet.
+     */
+    public String getServletInfo() {
+        return "Short description";
+    }
+    // </editor-fold>
+}

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToManyEager.java
URL: http://svn.apache.org/viewvc/geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToManyEager.java?view=auto&rev=518744
==============================================================================
--- geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToManyEager.java (added)
+++ geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToManyEager.java Thu Mar 15 13:06:17 2007
@@ -0,0 +1,91 @@
+package org.apache.geronimo.samples.daytrader.web.prims.ejb3;
+
+import org.apache.geronimo.samples.daytrader.ejb3.prims.AccountFacadeLocal;
+import org.apache.geronimo.samples.daytrader.AccountDataBean;
+import org.apache.geronimo.samples.daytrader.HoldingDataBean;
+import java.io.*;
+import java.util.Iterator;
+import java.util.Collection;
+import javax.annotation.Resource;
+import javax.ejb.EJB;
+
+import javax.servlet.*;
+import javax.servlet.http.*;
+
+/**
+ *
+ * @author Rob
+ * @version
+ */
+public class PingServlet2Session2EntityOneToManyEager extends HttpServlet {
+    
+    @EJB
+    private AccountFacadeLocal accountFacade;
+    
+    @Resource
+    private javax.transaction.UserTransaction transaction;    
+    
+    private static String header = "<HTML><HEAD><TITLE>EJB3 Primitives - PingServlet2Session2EntityOneToManyEager</TITLE><LINK href=\"prim.css\" rel=\"stylesheet\" type=\"text/css\" /></HEAD><BODY><H3>PingServlet2Session2EntityOneToManyEager</H3><BR>\n<TABLE class=\"table_1\"><TR class=\"row_1\"><TD>Account ID</TD><TD>Balance</TD></TR>";
+    private static String footer = "</TABLE>\n</BODY></HTML>";
+    
+    /** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
+     * @param request servlet request
+     * @param response servlet response
+     */
+    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
+    throws ServletException, IOException {
+        PrintWriter out = response.getWriter();
+        response.setContentType("text/html;charset=UTF-8");
+        
+        out.println(header);
+        int iterations = StaticUtils.getIterations(request);
+        
+        try{
+            for (int i = 0; i < iterations; i++){
+                transaction.begin();
+                AccountDataBean ae = accountFacade.findByAccountIDEagerHoldings(new Integer(StaticUtils.getRandomAccountID()));
+                out.println("<TR class=\"row_2\"><TD>" + ae.getAccountID() + "</TD><TD>" + ae.getBalance() + "</TD></TR><TR class=\"row_3\"><TD colspan=2 align=center>--Your Holdings--</TD></TR><TR class=\"row_3\"><TD>Holding ID</TD><TD>Price</TD></TR>");
+
+                Collection<HoldingDataBean> he = ae.getHoldings();
+                Iterator hiter = he.iterator();
+                while(hiter.hasNext()){
+                    HoldingDataBean temp = (HoldingDataBean) hiter.next();
+                    out.println("<TR class=\"row_3\"><TD>" + temp.getHoldingID() + "</TD><TD>" + temp.getPurchasePrice() + "</TD></TR>");
+                }
+
+                transaction.commit();
+            }
+        } catch (Exception ex) {
+            ServletException se = new ServletException();
+            se.initCause(ex);
+            throw se;
+        }        
+        out.println(footer);
+    }
+    
+    // <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
+     */
+    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
+     */
+    protected void doPost(HttpServletRequest request, HttpServletResponse response)
+    throws ServletException, IOException {
+        processRequest(request, response);
+    }
+    
+    /** Returns a short description of the servlet.
+     */
+    public String getServletInfo() {
+        return "Short description";
+    }
+    // </editor-fold>
+}

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToManyEager.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToManyEager.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToManyEager.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToManyLazy.java
URL: http://svn.apache.org/viewvc/geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToManyLazy.java?view=auto&rev=518744
==============================================================================
--- geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToManyLazy.java (added)
+++ geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToManyLazy.java Thu Mar 15 13:06:17 2007
@@ -0,0 +1,92 @@
+package org.apache.geronimo.samples.daytrader.web.prims.ejb3;
+
+import org.apache.geronimo.samples.daytrader.ejb3.prims.AccountFacadeLocal;
+import org.apache.geronimo.samples.daytrader.AccountDataBean;
+import org.apache.geronimo.samples.daytrader.HoldingDataBean;
+import org.apache.geronimo.samples.daytrader.ejb3.prims.ResultHolder;
+
+import java.io.*;
+import java.util.Iterator;
+import java.util.Collection;
+import javax.annotation.Resource;
+import javax.ejb.EJB;
+
+import javax.servlet.*;
+import javax.servlet.http.*;
+
+/**
+ *
+ * @author Rob
+ * @version
+ */
+public class PingServlet2Session2EntityOneToManyLazy extends HttpServlet {
+    
+    @EJB
+    private AccountFacadeLocal accountFacade; 
+    
+    @Resource
+    private javax.transaction.UserTransaction transaction;
+    
+    private static String header = "<HTML><HEAD><TITLE>EJB3 Primitives - PingServlet2Session2EntityOneToOneLazy</TITLE><LINK href=\"prim.css\" rel=\"stylesheet\" type=\"text/css\" /></HEAD><BODY><H3>PingServlet2Session2EntityOneToOneLazy</H3><BR>\n<TABLE class=\"table_1\"><TR class=\"row_1\"><TD>Account ID</TD><TD>Balance</TD></TR>";
+    private static String footer = "</TABLE>\n</BODY></HTML>";
+    
+    /** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
+     * @param request servlet request
+     * @param response servlet response
+     */
+    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
+    throws ServletException, IOException {
+        PrintWriter out = response.getWriter();        
+        response.setContentType("text/html;charset=UTF-8");
+
+        out.println(header);
+        int iterations = StaticUtils.getIterations(request);
+
+        try{
+            for (int i = 0; i < iterations; i++){	
+                transaction.begin();
+                AccountDataBean ae = accountFacade.find(new Integer(StaticUtils.getRandomAccountID()));
+                out.println("<TR class=\"row_2\"><TD>" + ae.getAccountID() + "</TD><TD>" + ae.getBalance() + "</TD></TR><TR class=\"row_3\"><TD colspan=2 align=center>--Your Holdings--</TD></TR><TR class=\"row_3\"><TD>Holding ID</TD><TD>Price</TD></TR>");                         
+
+                Collection<HoldingDataBean> he = ae.getHoldings();                
+                Iterator hiter = he.iterator();
+                while(hiter.hasNext()){
+                    HoldingDataBean temp = (HoldingDataBean) hiter.next();
+                    out.println("<TR class=\"row_3\"><TD>" + temp.getHoldingID() + "</TD><TD>" + temp.getPurchasePrice() + "</TD></TR>");
+                }
+                transaction.commit();			
+            }
+        } catch (Exception ex) {
+            ServletException se = new ServletException();
+            se.initCause(ex);
+            throw se;
+        }                
+        out.println(footer);
+    }
+    
+    // <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
+     */
+    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
+     */
+    protected void doPost(HttpServletRequest request, HttpServletResponse response)
+    throws ServletException, IOException {
+        processRequest(request, response);
+    }
+    
+    /** Returns a short description of the servlet.
+     */
+    public String getServletInfo() {
+        return "Short description";
+    }
+    // </editor-fold>
+}

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToManyLazy.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToManyLazy.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToManyLazy.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToManyToOneEager.java
URL: http://svn.apache.org/viewvc/geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToManyToOneEager.java?view=auto&rev=518744
==============================================================================
--- geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToManyToOneEager.java (added)
+++ geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToManyToOneEager.java Thu Mar 15 13:06:17 2007
@@ -0,0 +1,96 @@
+package org.apache.geronimo.samples.daytrader.web.prims.ejb3;
+
+import org.apache.geronimo.samples.daytrader.ejb3.prims.Accountejb3FacadeLocal;
+import org.apache.geronimo.samples.daytrader.ejb3.Accountejb3;
+import org.apache.geronimo.samples.daytrader.ejb3.Holdingejb3;
+import org.apache.geronimo.samples.daytrader.ejb3.Quoteejb3;
+import java.io.*;
+import java.util.Iterator;
+import java.util.Collection;
+import javax.annotation.Resource;
+import javax.ejb.EJB;
+
+import javax.servlet.*;
+import javax.servlet.http.*;
+
+/**
+ *
+ * @author Rob
+ * @version
+ */
+public class PingServlet2Session2EntityOneToManyToOneEager extends HttpServlet {
+    
+    @EJB
+    private Accountejb3FacadeLocal accountejb3Facade; 
+    
+    @Resource
+    private javax.transaction.UserTransaction transaction;     
+    
+    private static String header = "<HTML><HEAD><TITLE>EJB3 Primitives - PingServlet2Session2EntityOneToManyToOneEager</TITLE><LINK href=\"prim.css\" rel=\"stylesheet\" type=\"text/css\" /></HEAD><BODY><H3>PingServlet2Session2EntityOneToManyToOneEager</H3><BR>\n<TABLE class=\"table_1\"><TR class=\"row_1\"><TD>Account ID</TD><TD>Balance</TD></TR>";
+    private static String footer = "</TABLE>\n</BODY></HTML>";
+    
+    /** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
+     * @param request servlet request
+     * @param response servlet response
+     */
+    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
+    throws ServletException, IOException {
+        PrintWriter out = response.getWriter();        
+        response.setContentType("text/html;charset=UTF-8");
+
+        out.println(header);
+        int iterations = StaticUtils.getIterations(request);
+
+        try{
+        for (int i = 0; i < iterations; i++){	
+                transaction.begin();
+                
+                Accountejb3 ae = accountejb3Facade.find(new Integer(StaticUtils.getRandomAccountID()));
+                out.println("<TR class=\"row_2\"><TD>" + ae.getAccountID() + "</TD><TD>" + ae.getBalance() + "</TD></TR><TR class=\"row_3\"><TD colspan=2 align=center>--Your Holdings--</TD></TR><TR class=\"row_3\"><TD>Holding ID</TD><TD>Price</TD></TR>");                         
+
+                Collection<Holdingejb3> he = ae.getHoldings();                
+                Iterator hiter = he.iterator();
+                while(hiter.hasNext()){
+                    Holdingejb3 temp = (Holdingejb3) hiter.next();
+                    Quoteejb3 quote = temp.getQuote();
+                    out.println("<TR class=\"row_3\"><TD>" + temp.getHoldingID() + "</TD><TD>" + temp.getPurchasePrice() + "</TD></TR><TR class=\"row_3\"><TD colspan=2>" + quote.getSymbol() + "</TD><TR>");
+                }
+
+                transaction.commit();
+        }
+        
+        } catch (Exception ex) {
+            ServletException se = new ServletException();
+            se.initCause(ex);
+            throw se;
+        }
+        
+        out.println(footer);
+    }
+    
+    // <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
+     */
+    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
+     */
+    protected void doPost(HttpServletRequest request, HttpServletResponse response)
+    throws ServletException, IOException {
+        processRequest(request, response);
+    }
+    
+    /** Returns a short description of the servlet.
+     */
+    public String getServletInfo() {
+        return "Short description";
+    }
+    // </editor-fold>
+}

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToManyToOneEager.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToManyToOneEager.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToManyToOneEager.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToManyToOneLazy.java
URL: http://svn.apache.org/viewvc/geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToManyToOneLazy.java?view=auto&rev=518744
==============================================================================
--- geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToManyToOneLazy.java (added)
+++ geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToManyToOneLazy.java Thu Mar 15 13:06:17 2007
@@ -0,0 +1,94 @@
+package org.apache.geronimo.samples.daytrader.web.prims.ejb3;
+
+import org.apache.geronimo.samples.daytrader.ejb3.prims.AccountFacadeLocal;
+import org.apache.geronimo.samples.daytrader.AccountDataBean;
+import org.apache.geronimo.samples.daytrader.HoldingDataBean;
+import org.apache.geronimo.samples.daytrader.QuoteDataBean;
+
+import java.io.*;
+import java.util.Iterator;
+import java.util.Collection;
+import javax.annotation.Resource;
+import javax.ejb.EJB;
+
+import javax.servlet.*;
+import javax.servlet.http.*;
+
+/**
+ *
+ * @author Rob
+ * @version
+ */
+public class PingServlet2Session2EntityOneToManyToOneLazy extends HttpServlet {
+    
+    @EJB
+    private AccountFacadeLocal accountFacade; 
+    
+    @Resource
+    private javax.transaction.UserTransaction transaction;        
+    
+    private static String header = "<HTML><HEAD><TITLE>EJB3 Primitives - PingServlet2Session2EntityOneToManyToOneLazy</TITLE><LINK href=\"prim.css\" rel=\"stylesheet\" type=\"text/css\" /></HEAD><BODY><H3>PingServlet2Session2EntityOneToManyToOneLazy</H3><BR>\n<TABLE class=\"table_1\"><TR class=\"row_1\"><TD>Account ID</TD><TD>Balance</TD></TR>";
+    private static String footer = "</TABLE>\n</BODY></HTML>";
+    
+    /** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
+     * @param request servlet request
+     * @param response servlet response
+     */
+    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
+    throws ServletException, IOException {
+        PrintWriter out = response.getWriter();        
+        response.setContentType("text/html;charset=UTF-8");
+
+        out.println(header);
+        int iterations = StaticUtils.getIterations(request);
+
+        try{
+            for (int i = 0; i < iterations; i++){
+                    transaction.begin();
+                    AccountDataBean ae = accountFacade.find(new Integer(StaticUtils.getRandomAccountID()));
+                    out.println("<TR class=\"row_2\"><TD>" + ae.getAccountID() + "</TD><TD>" + ae.getBalance() + "</TD></TR><TR class=\"row_3\"><TD colspan=2 align=center>--Your Holdings--</TD></TR><TR class=\"row_3\"><TD>Holding ID</TD><TD>Price</TD></TR>");                         
+
+                    Collection<HoldingDataBean> he = ae.getHoldings();                
+                    Iterator hiter = he.iterator();
+                    while(hiter.hasNext()){
+                        HoldingDataBean temp = (HoldingDataBean) hiter.next();
+                        QuoteDataBean quote = temp.getQuote();
+                        out.println("<TR class=\"row_3\"><TD>" + temp.getHoldingID() + "</TD><TD>" + temp.getPurchasePrice() + "</TD></TR><TR class=\"row_3\"><TD colspan=2>" + quote.getSymbol() + "</TD><TR>");
+                    }
+
+                    transaction.commit();
+            }
+        } catch (Exception ex) {
+            ServletException se = new ServletException();
+            se.initCause(ex);
+            throw se;
+        }        
+        out.println(footer);
+    }
+    
+    // <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
+     */
+    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
+     */
+    protected void doPost(HttpServletRequest request, HttpServletResponse response)
+    throws ServletException, IOException {
+        processRequest(request, response);
+    }
+    
+    /** Returns a short description of the servlet.
+     */
+    public String getServletInfo() {
+        return "Short description";
+    }
+    // </editor-fold>
+}

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToManyToOneLazy.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToManyToOneLazy.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToManyToOneLazy.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToManyTrueEager.java
URL: http://svn.apache.org/viewvc/geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToManyTrueEager.java?view=auto&rev=518744
==============================================================================
--- geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToManyTrueEager.java (added)
+++ geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToManyTrueEager.java Thu Mar 15 13:06:17 2007
@@ -0,0 +1,87 @@
+package org.apache.geronimo.samples.daytrader.web.prims.ejb3;
+
+import org.apache.geronimo.samples.daytrader.ejb3.prims.Accountejb2FacadeLocal;
+import org.apache.geronimo.samples.daytrader.ejb3.Accountejb2;
+import org.apache.geronimo.samples.daytrader.ejb3.Holdingejb2;
+import java.io.*;
+import java.util.Iterator;
+import java.util.Collection;
+import javax.annotation.Resource;
+import javax.ejb.EJB;
+
+import javax.servlet.*;
+import javax.servlet.http.*;
+
+class PingServlet2Session2EntityOneToManyTrueEager extends HttpServlet {
+    
+    @EJB
+    private Accountejb2FacadeLocal accountejb2Facade;
+    
+    @Resource
+    private javax.transaction.UserTransaction transaction;    
+    
+    private static String header = "<HTML><HEAD><TITLE>EJB3 Primitives - PingServlet2Session2EntityOneToOneTrueEager</TITLE><LINK href=\"prim.css\" rel=\"stylesheet\" type=\"text/css\" /></HEAD><BODY><H3>PingServlet2Session2EntityOneToOneTrueEager</H3><BR>\n<TABLE class=\"table_1\"><TR class=\"row_1\"><TD>Account ID</TD><TD>Balance</TD></TR>";
+    private static String footer = "</TABLE>\n</BODY></HTML>";
+    
+    /** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
+     * @param request servlet request
+     * @param response servlet response
+     */
+    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
+    throws ServletException, IOException {
+        PrintWriter out = response.getWriter();
+        response.setContentType("text/html;charset=UTF-8");
+        
+        out.println(header);
+        int iterations = StaticUtils.getIterations(request);
+        
+        try{
+            for (int i = 0; i < iterations; i++){
+                transaction.begin();
+                Accountejb2 ae = accountejb2Facade.find(new Integer(StaticUtils.getRandomAccountID()));
+                out.println("<TR class=\"row_2\"><TD>" + ae.getAccountID() + "</TD><TD>" + ae.getBalance() + "</TD></TR><TR class=\"row_3\"><TD colspan=2 align=center>--Your Holdings--</TD></TR><TR class=\"row_3\"><TD>Holding ID</TD><TD>Price</TD></TR>");
+
+                Collection<Holdingejb2> he = ae.getHoldings();
+                Iterator hiter = he.iterator();
+                while(hiter.hasNext()){
+                    Holdingejb2 temp = (Holdingejb2) hiter.next();
+                    out.println("<TR class=\"row_3\"><TD>" + temp.getHoldingID() + "</TD><TD>" + temp.getPurchasePrice() + "</TD></TR>");
+                }
+
+                transaction.commit();
+            }
+        } catch (Exception ex) {
+            ServletException se = new ServletException();
+            se.initCause(ex);
+            throw se;
+        }
+        
+        out.println(footer);
+    }
+    
+    // <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
+     */
+    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
+     */
+    protected void doPost(HttpServletRequest request, HttpServletResponse response)
+    throws ServletException, IOException {
+        processRequest(request, response);
+    }
+    
+    /** Returns a short description of the servlet.
+     */
+    public String getServletInfo() {
+        return "Short description";
+    }
+    // </editor-fold>
+}

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToManyTrueEager.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToManyTrueEager.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToManyTrueEager.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToOneEager.java
URL: http://svn.apache.org/viewvc/geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToOneEager.java?view=auto&rev=518744
==============================================================================
--- geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToOneEager.java (added)
+++ geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToOneEager.java Thu Mar 15 13:06:17 2007
@@ -0,0 +1,92 @@
+package org.apache.geronimo.samples.daytrader.web.prims.ejb3;
+
+import org.apache.geronimo.samples.daytrader.ejb3.prims.AccountFacadeLocal;
+import org.apache.geronimo.samples.daytrader.AccountDataBean;
+import org.apache.geronimo.samples.daytrader.AccountProfileDataBean;
+import java.io.*;
+import java.net.*;
+import java.util.List;
+import javax.annotation.Resource;
+import javax.ejb.EJB;
+
+import javax.servlet.*;
+import javax.servlet.http.*;
+
+/**
+ *
+ * @author jstecher
+ * @version
+ */
+public class PingServlet2Session2EntityOneToOneEager extends HttpServlet {
+    
+    @EJB
+    private AccountFacadeLocal accountFacade;
+    
+    @Resource
+    private javax.transaction.UserTransaction transaction;
+    
+    private static String header = "<HTML><HEAD><TITLE>EJB3 Primitives - PingServlet2Session2EntityOneToOneEager</TITLE><LINK href=\"prim.css\" rel=\"stylesheet\" type=\"text/css\" /></HEAD><BODY><H3>PingServlet2Session2EntityOneToOneEager</H3><BR>\n<TABLE class=\"table_1\"><TR class=\"row_1\"><TD>Account ID</TD><TD>Balance</TD><TD>User ID</TD><TD>Full Name</TD></TR>";
+    private static String footer = "</TABLE>\n</BODY></HTML>";
+    
+    /** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
+     * @param request servlet request
+     * @param response servlet response
+     */
+    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
+    throws ServletException, IOException {
+        PrintWriter out = response.getWriter();
+        response.setContentType("text/html;charset=UTF-8");
+        
+        out.println(header);
+        int iterations = StaticUtils.getIterations(request);
+        
+                /*Accountejb ae = new Accountejb();
+                Accountprofileejb ape = new Accountprofileejb();
+                 
+                accountejbFacade.create(ae);*/
+        
+        try{
+            for (int i = 0; i < iterations; i++){
+                transaction.begin();
+                AccountDataBean ae = accountFacade.findByAccountID(new Integer(StaticUtils.getRandomAccountID()), false);
+                
+                out.println("<TR class=\"row_2\"><TD>" + ae.getAccountID() + "</TD><TD>" + ae.getBalance() + "</TD>");
+                
+                AccountProfileDataBean ape = ae.getProfile();
+                out.println("<TD>" + ape.getUserID() + "</TD><TD>" + ape.getFullName() + "</TD></TR>");
+                transaction.commit();
+            }
+        } catch (Exception ex) {
+            ServletException se = new ServletException();
+            se.initCause(ex);
+            throw se;
+        }
+        out.println(footer);
+    }
+    
+    // <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
+     */
+    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
+     */
+    protected void doPost(HttpServletRequest request, HttpServletResponse response)
+    throws ServletException, IOException {
+        processRequest(request, response);
+    }
+    
+    /** Returns a short description of the servlet.
+     */
+    public String getServletInfo() {
+        return "Short description";
+    }
+    // </editor-fold>
+}

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToOneEager.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToOneEager.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToOneEager.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToOneLazy.java
URL: http://svn.apache.org/viewvc/geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToOneLazy.java?view=auto&rev=518744
==============================================================================
--- geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToOneLazy.java (added)
+++ geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToOneLazy.java Thu Mar 15 13:06:17 2007
@@ -0,0 +1,100 @@
+package org.apache.geronimo.samples.daytrader.web.prims.ejb3;
+
+import org.apache.geronimo.samples.daytrader.ejb3.prims.AccountFacadeLocal;
+import org.apache.geronimo.samples.daytrader.AccountDataBean;
+import org.apache.geronimo.samples.daytrader.AccountProfileDataBean;
+import org.apache.geronimo.samples.daytrader.HoldingDataBean;
+import org.apache.geronimo.samples.daytrader.ejb3.prims.ResultHolder;
+import java.io.*;
+import java.net.*;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Collection;
+import javax.annotation.Resource;
+import javax.ejb.EJB;
+
+import javax.servlet.*;
+import javax.servlet.http.*;
+import javax.transaction.HeuristicMixedException;
+import javax.transaction.HeuristicRollbackException;
+import javax.transaction.NotSupportedException;
+import javax.transaction.RollbackException;
+import javax.transaction.SystemException;
+
+/**
+ *
+ * @author jstecher
+ * @version
+ */
+public class PingServlet2Session2EntityOneToOneLazy extends HttpServlet {
+
+    @EJB
+    private AccountFacadeLocal accountFacade; 
+    
+    
+    @Resource
+    private javax.transaction.UserTransaction transaction;
+    
+    private static String header = "<HTML><HEAD><TITLE>EJB3 Primitives - PingServlet2Session2EntityOneToOneLazy</TITLE><LINK href=\"prim.css\" rel=\"stylesheet\" type=\"text/css\" /></HEAD><BODY><H3>PingServlet2Session2EntityOneToOneLazy</H3><BR>\n<TABLE class=\"table_1\"><TR class=\"row_1\"><TD>Account ID</TD><TD>Balance</TD><TD>User ID</TD><TD>Full Name</TD></TR>";
+    private static String footer = "</TABLE>\n</BODY></HTML>";
+    
+    /** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
+     * @param request servlet request
+     * @param response servlet response
+     */
+    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
+    throws ServletException, IOException {
+        PrintWriter out = response.getWriter();        
+        response.setContentType("text/html;charset=UTF-8");
+
+        out.println(header);
+        int iterations = StaticUtils.getIterations(request);
+        try {
+
+            for (int i = 0; i < iterations; i++){
+                    transaction.begin();
+                    
+                    AccountDataBean ae = accountFacade.findByAccountID(new Integer(StaticUtils.getRandomAccountID()), true);
+                                            
+                    out.println("<TR class=\"row_2\"><TD>" + ae.getAccountID() + "</TD><TD>" + ae.getBalance() + "</TD>");
+
+                    AccountProfileDataBean ape = ae.getProfile();
+                    out.println("<TD>" + ape.getUserID() + "</TD><TD>" + ape.getFullName() + "</TD></TR>");
+
+                    transaction.commit();
+            }
+        } catch (Exception ex) {
+            ServletException se = new ServletException();
+            se.initCause(ex);
+            throw se;
+        }
+        out.println(footer);                
+    }
+    
+    // <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
+     */
+    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
+     */
+    protected void doPost(HttpServletRequest request, HttpServletResponse response)
+    throws ServletException, IOException {        
+            processRequest(request, response);
+
+    }
+    
+    /** Returns a short description of the servlet.
+     */
+    public String getServletInfo() {
+        return "Short description";
+    }
+    // </editor-fold>
+}

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToOneLazy.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToOneLazy.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToOneLazy.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToOneToMany.java
URL: http://svn.apache.org/viewvc/geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToOneToMany.java?view=auto&rev=518744
==============================================================================
--- geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToOneToMany.java (added)
+++ geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToOneToMany.java Thu Mar 15 13:06:17 2007
@@ -0,0 +1,95 @@
+package org.apache.geronimo.samples.daytrader.web.prims.ejb3;
+
+import org.apache.geronimo.samples.daytrader.ejb3.prims.AccountProfileFacadeLocal;
+import org.apache.geronimo.samples.daytrader.AccountDataBean;
+import org.apache.geronimo.samples.daytrader.AccountProfileDataBean;
+import org.apache.geronimo.samples.daytrader.HoldingDataBean;
+import org.apache.geronimo.samples.daytrader.QuoteDataBean;
+import org.apache.geronimo.samples.daytrader.ejb3.prims.ResultHolder;
+import java.io.*;
+import java.util.Iterator;
+import java.util.Collection;
+import javax.annotation.Resource;
+import javax.ejb.EJB;
+
+import javax.servlet.*;
+import javax.servlet.http.*;
+
+/**
+ *
+ * @author Rob
+ * @version
+ */
+public class PingServlet2Session2EntityOneToOneToMany extends HttpServlet {
+    
+    @EJB
+    private AccountProfileFacadeLocal accountProfileFacade; 
+    
+    @Resource
+    private javax.transaction.UserTransaction transaction;    
+    
+    private static String header = "<HTML><HEAD><TITLE>EJB3 Primitives - PingServlet2Session2EntityOneToOneToMany</TITLE><LINK href=\"prim.css\" rel=\"stylesheet\" type=\"text/css\" /></HEAD><BODY><H3>PingServlet2Session2EntityOneToOneToMany</H3><BR>\n<TABLE class=\"table_1\"><TR class=\"row_1\"><TD>Account ID</TD><TD>Balance</TD></TR>";
+    private static String footer = "</TABLE>\n</BODY></HTML>";
+    
+    /** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
+     * @param request servlet request
+     * @param response servlet response
+     */
+    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
+    throws ServletException, IOException {
+        PrintWriter out = response.getWriter();        
+        response.setContentType("text/html;charset=UTF-8");
+
+        out.println(header);
+        int iterations = StaticUtils.getIterations(request);
+
+        try{
+        for (int i = 0; i < iterations; i++){	
+                transaction.begin();
+                AccountProfileDataBean ape = accountProfileFacade.find(StaticUtils.getRandomUserID());
+                AccountDataBean ae = ape.getAccount();
+                out.println("<TR><TR class=\"row_2\"><TD colspan=2>" + ape.getUserID() + "</TD></TR><TR class=\"row_2\"><TD>" + ae.getAccountID() + "</TD><TD>" + ae.getBalance() + "</TD></TR><TR class=\"row_3\"><TD colspan=2 align=center>--Your Holdings--</TD></TR><TR class=\"row_3\"><TD>Holding ID</TD><TD>Price</TD></TR>");                         
+
+                Collection<HoldingDataBean> he = ae.getHoldings();                
+                Iterator hiter = he.iterator();
+                while(hiter.hasNext()){
+                    HoldingDataBean temp = (HoldingDataBean) hiter.next();
+                    out.println("<TR class=\"row_3\"><TD>" + temp.getHoldingID() + "</TD><TD>" + temp.getPurchasePrice() + "</TD></TR>");
+                }
+
+                transaction.commit();
+        }
+        } catch (Exception ex) {
+            ServletException se = new ServletException();
+            se.initCause(ex);
+            throw se;
+        }        
+        out.println(footer);
+    }
+    
+    // <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
+     */
+    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
+     */
+    protected void doPost(HttpServletRequest request, HttpServletResponse response)
+    throws ServletException, IOException {
+        processRequest(request, response);
+    }
+    
+    /** Returns a short description of the servlet.
+     */
+    public String getServletInfo() {
+        return "Short description";
+    }
+    // </editor-fold>
+}

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToOneToMany.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToOneToMany.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityOneToOneToMany.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2MDB.java
URL: http://svn.apache.org/viewvc/geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2MDB.java?view=auto&rev=518744
==============================================================================
--- geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2MDB.java (added)
+++ geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2MDB.java Thu Mar 15 13:06:17 2007
@@ -0,0 +1,80 @@
+
+package org.apache.geronimo.samples.daytrader.web.prims.ejb3;
+
+import org.apache.geronimo.samples.daytrader.ejb3.prims.LocalSLMDBTestRemote;
+import java.io.*;
+import java.net.*;
+import javax.annotation.Resource;
+import javax.ejb.EJB;
+import javax.jms.QueueConnectionFactory;
+import javax.naming.InitialContext;
+
+import javax.servlet.*;
+import javax.servlet.http.*;
+
+
+
+/**
+ *
+ * @author Administrator
+ * @version
+ */
+public class PingServlet2Session2MDB extends HttpServlet {
+    
+    @EJB
+    private LocalSLMDBTestRemote mdbTestRemote;
+    
+    @Resource(mappedName="jms/TradeBrokerQCF")
+    private QueueConnectionFactory queueConnectionFactory;
+    
+    static String html1 = "<html><head><title>Servlet PingServlet2Session2MDB</title><LINK href=\"prim.css\" rel=\"stylesheet\" type=\"text/css\" /></head><body><h1>Servlet PingSLSessionLocal</h1>";
+    static String html2 = "</body></html>";
+    
+    /** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
+     * @param request servlet request
+     * @param response servlet response
+     */
+    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
+    throws ServletException, IOException {
+        response.setContentType("text/html;charset=UTF-8");
+        PrintWriter out = response.getWriter();
+        out.println(html1);
+        int iterations = StaticUtils.getIterations(request);
+        String message = null;
+        
+        for (int i = 0; i < iterations; i++){
+            message = mdbTestRemote.publishToTradeBrokerQueue().toString();
+        }
+
+        out.println(message);
+        
+        out.println(html2);
+        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
+     */
+    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
+     */
+    protected void doPost(HttpServletRequest request, HttpServletResponse response)
+    throws ServletException, IOException {
+        processRequest(request, response);
+    }
+    
+    /** Returns a short description of the servlet.
+     */
+    public String getServletInfo() {
+        return "Short description";
+    }
+    // </editor-fold>
+}

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2MDB.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2MDB.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/PingServlet2Session2MDB.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/StaticUtils.java
URL: http://svn.apache.org/viewvc/geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/StaticUtils.java?view=auto&rev=518744
==============================================================================
--- geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/StaticUtils.java (added)
+++ geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/StaticUtils.java Thu Mar 15 13:06:17 2007
@@ -0,0 +1,60 @@
+package org.apache.geronimo.samples.daytrader.web.prims.ejb3;
+
+import java.math.BigDecimal;
+import java.util.Random;
+import javax.servlet.*;
+import javax.servlet.http.*;
+
+/**
+ *
+ * @author Rob
+ */
+public class StaticUtils {
+    
+	public static final String ITERATION_PARAM = "itrCount";                
+        public static final String PREFIX_PARAM = "prefix";
+	
+	private static int MIN_ACCOUNT_ID = 0;
+	private static int MAX_ACCOUNT_ID = 499;
+        private static String UID_PREFIX = "uid:";
+		
+	/*
+	 * Extract iteration info from a request
+	 */
+	public static String getQuotePrefix(HttpServletRequest req){
+		String prefixString = req.getParameter(PREFIX_PARAM);
+		if (prefixString == null){
+			return "defaultprefix";
+		} else {
+			return prefixString;
+		}
+	}
+	/*
+	 * Extract quote prefix info from a request
+	 */
+	public static int getIterations(HttpServletRequest req){
+		String itrString = req.getParameter(ITERATION_PARAM);
+		if (itrString == null){
+			return 1;
+		} else {
+			return Integer.parseInt(itrString);
+		}
+	}        
+	
+	
+	
+	private static Random cachedRandom = new Random();
+	public static int getRandomAccountID(){
+		return cachedRandom.nextInt((MAX_ACCOUNT_ID - MIN_ACCOUNT_ID) + 1) + MIN_ACCOUNT_ID;
+	}
+	public static String getRandomUserID(){
+		return UID_PREFIX + (cachedRandom.nextInt((MAX_ACCOUNT_ID - MIN_ACCOUNT_ID) + 1) + MIN_ACCOUNT_ID);
+	} 
+        public static BigDecimal getRandomBigDecimal(int max){
+                return new BigDecimal(cachedRandom.nextDouble() * max);
+        }
+        public static double getRandomDouble(int max){
+                return cachedRandom.nextDouble() * max;
+        }
+    
+}

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/StaticUtils.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/StaticUtils.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/ejb3/StaticUtils.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: geronimo/daytrader/branches/ejb3/modules/web/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/geronimo/daytrader/branches/ejb3/modules/web/src/main/webapp/WEB-INF/web.xml?view=diff&rev=518744&r1=518743&r2=518744
==============================================================================
--- geronimo/daytrader/branches/ejb3/modules/web/src/main/webapp/WEB-INF/web.xml (original)
+++ geronimo/daytrader/branches/ejb3/modules/web/src/main/webapp/WEB-INF/web.xml Thu Mar 15 13:06:17 2007
@@ -16,10 +16,11 @@
     See the License for the specific language governing permissions and
     limitations under the License.
 -->
-<web-app version="2.4"
+<web-app version="2.5" 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-app_2_5.xsd">
+<!--<web-app version="2.4"
 	xmlns="http://java.sun.com/xml/ns/j2ee"
 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
-    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">-->
 
       <display-name>DayTraderWeb</display-name>
       <filter>
@@ -270,7 +271,92 @@
          <display-name>org_apache_geronimo_samples_daytrader_TradeWSAction</display-name>
          <servlet-name>org_apache_geronimo_samples_daytrader_TradeWSAction</servlet-name>
          <servlet-class>org.apache.geronimo.samples.daytrader.TradeWSAction</servlet-class>
-      </servlet>                  
+      </servlet>
+      <servlet>
+        <servlet-name>PingSLSessionRemote</servlet-name>
+        <servlet-class>org.apache.geronimo.samples.daytrader.web.prims.ejb3.PingSLSessionRemote</servlet-class>
+    </servlet>
+    <servlet>
+        <servlet-name>PingSLSessionLocal</servlet-name>
+        <servlet-class>org.apache.geronimo.samples.daytrader.web.prims.ejb3.PingSLSessionLocal</servlet-class>
+    </servlet>
+    <servlet>
+        <servlet-name>PingSLSessionRemote2SLSessionLocal</servlet-name>
+        <servlet-class>org.apache.geronimo.samples.daytrader.web.prims.ejb3.PingSLSessionLocal2SLSessionRemote</servlet-class>
+    </servlet>
+    <servlet>
+        <servlet-name>PingSLSessionRemoteWithParameters</servlet-name>
+        <servlet-class>org.apache.geronimo.samples.daytrader.web.prims.ejb3.PingSLSessionRemoteWithParameters</servlet-class>
+    </servlet>
+    <servlet>
+        <servlet-name>PingSLSessionLocalWithParameters</servlet-name>
+        <servlet-class>org.apache.geronimo.samples.daytrader.web.prims.ejb3.PingSLSessionLocalWithParameters</servlet-class>
+    </servlet>
+    <servlet>
+        <servlet-name>PingSLSessionLocal2SLSessionRemote</servlet-name>
+        <servlet-class>org.apache.geronimo.samples.daytrader.web.prims.ejb3.PingSLSessionLocal2SLSessionRemote</servlet-class>
+    </servlet>
+    <servlet>
+        <servlet-name>PingSFSessionRemoteCreate</servlet-name>
+        <servlet-class>org.apache.geronimo.samples.daytrader.web.prims.ejb3.PingSFSessionRemoteCreate</servlet-class>
+    </servlet>
+    <servlet>
+        <servlet-name>PingSFSessionRemoteUpdate</servlet-name>
+        <servlet-class>org.apache.geronimo.samples.daytrader.web.prims.ejb3.PingSFSessionRemoteUpdate</servlet-class>
+    </servlet>
+    <servlet>
+        <servlet-name>PingSFSessionRemoteRemove</servlet-name>
+        <servlet-class>org.apache.geronimo.samples.daytrader.web.prims.ejb3.PingSFSessionRemoteRemove</servlet-class>
+    </servlet>
+    <servlet>
+        <servlet-name>PingServlet2Session2Entity</servlet-name>
+        <servlet-class>org.apache.geronimo.samples.daytrader.web.prims.ejb3.PingServlet2Session2Entity</servlet-class>
+    </servlet>
+    <servlet>
+        <servlet-name>PingServlet2Session2EntityOneToOneLazy</servlet-name>
+        <servlet-class>org.apache.geronimo.samples.daytrader.web.prims.ejb3.PingServlet2Session2EntityOneToOneLazy</servlet-class>
+    </servlet>
+    <servlet>
+        <servlet-name>PingServlet2Session2EntityOneToOneEager</servlet-name>
+        <servlet-class>org.apache.geronimo.samples.daytrader.web.prims.ejb3.PingServlet2Session2EntityOneToOneEager</servlet-class>
+    </servlet>
+    <servlet>
+        <servlet-name>PingServlet2Session2EntityOneToManyLazy</servlet-name>
+        <servlet-class>org.apache.geronimo.samples.daytrader.web.prims.ejb3.PingServlet2Session2EntityOneToManyLazy</servlet-class>
+    </servlet>
+    <servlet>
+        <servlet-name>PingServlet2Session2EntityOneToManyEager</servlet-name>
+        <servlet-class>org.apache.geronimo.samples.daytrader.web.prims.ejb3.PingServlet2Session2EntityOneToManyEager</servlet-class>
+    </servlet>
+    <servlet>
+        <servlet-name>PingServlet2Session2EntityOneToManyTrueEager</servlet-name>
+        <servlet-class>org.apache.geronimo.samples.daytrader.web.prims.ejb3.PingServlet2Session2EntityOneToManyTrueEager</servlet-class>
+    </servlet>
+    <servlet>
+        <servlet-name>PingServlet2Session2EntityOneToManyToOneLazy</servlet-name>
+        <servlet-class>org.apache.geronimo.samples.daytrader.web.prims.ejb3.PingServlet2Session2EntityOneToManyToOneLazy</servlet-class>
+    </servlet>
+    <servlet>
+        <servlet-name>PingServlet2Session2EntityOneToOneToMany</servlet-name>
+        <servlet-class>org.apache.geronimo.samples.daytrader.web.prims.ejb3.PingServlet2Session2EntityOneToOneToMany</servlet-class>
+    </servlet>
+    <servlet>
+        <servlet-name>PingServlet2Session2EntityOneToManyToOneEager</servlet-name>
+        <servlet-class>org.apache.geronimo.samples.daytrader.web.prims.ejb3.PingServlet2Session2EntityOneToManyToOneEager</servlet-class>
+    </servlet>
+    <servlet>
+        <servlet-name>PingServlet2Session2EJBCreate</servlet-name>
+        <servlet-class>org.apache.geronimo.samples.daytrader.web.prims.ejb3.PingServlet2Session2EJBCreate</servlet-class>
+    </servlet>
+    <servlet>
+        <servlet-name>PingServlet2Session2EJBDestroy</servlet-name>
+        <servlet-class>org.apache.geronimo.samples.daytrader.web.prims.ejb3.PingServlet2Session2EJBDestroy</servlet-class>
+    </servlet>
+    <servlet><servlet-name>PingServlet2Session2EJBUpdate</servlet-name><servlet-class>org.apache.geronimo.samples.daytrader.web.prims.ejb3.PingServlet2Session2EJBUpdate</servlet-class></servlet><servlet><servlet-name>PingServlet2UnmanagedEntity</servlet-name><servlet-class>org.apache.geronimo.samples.daytrader.web.prims.ejb3.PingServlet2UnmanagedEntity</servlet-class></servlet>
+    <servlet>
+        <servlet-name>PingServlet2Session2MDB</servlet-name>
+        <servlet-class>org.apache.geronimo.samples.daytrader.web.prims.ejb3.PingServlet2Session2MDB</servlet-class>
+    </servlet>               
 
       <!-- [INSERT FRAGMENT HERE] -->
 
@@ -393,7 +479,96 @@
       <servlet-mapping>
          <servlet-name>PingServlet2Include</servlet-name>
          <url-pattern>/servlet/PingServlet2Include</url-pattern>
-      </servlet-mapping>                 
+      </servlet-mapping>
+      <servlet-mapping>
+        <servlet-name>PingSLSessionRemote</servlet-name>
+        <url-pattern>/PingSLSessionRemote</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>PingSLSessionLocal</servlet-name>
+        <url-pattern>/PingSLSessionLocal</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>PingSLSessionRemote2SLSessionLocal</servlet-name>
+        <url-pattern>/PingSLSessionRemote2SLSessionLocal</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>PingSLSessionRemoteWithParameters</servlet-name>
+        <url-pattern>/PingSLSessionRemoteWithParameters</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>PingSLSessionLocalWithParameters</servlet-name>
+        <url-pattern>/PingSLSessionLocalWithParameters</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>PingSLSessionLocal2SLSessionRemote</servlet-name>
+        <url-pattern>/PingSLSessionLocal2SLSessionRemote</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>PingSFSessionRemoteCreate</servlet-name>
+        <url-pattern>/PingSFSessionRemoteCreate</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>PingSFSessionRemoteUpdate</servlet-name>
+        <url-pattern>/PingSFSessionRemoteUpdate</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>PingSFSessionRemoteRemove</servlet-name>
+        <url-pattern>/PingSFSessionRemoteRemove</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>PingServlet2Session2Entity</servlet-name>
+        <url-pattern>/PingServlet2Session2Entity</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>PingServlet2Session2EntityOneToOneLazy</servlet-name>
+        <url-pattern>/PingServlet2Session2EntityOneToOneLazy</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>PingServlet2Session2EntityOneToOneEager</servlet-name>
+        <url-pattern>/PingServlet2Session2EntityOneToOneEager</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>PingServlet2Session2EntityOneToManyLazy</servlet-name>
+        <url-pattern>/PingServlet2Session2EntityOneToManyLazy</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>PingServlet2Session2EntityOneToManyEager</servlet-name>
+        <url-pattern>/PingServlet2Session2EntityOneToManyEager</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>PingServlet2Session2EntityOneToManyTrueEager</servlet-name>
+        <url-pattern>/PingServlet2Session2EntityOneToManyTrueEager</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>PingServlet2Session2EntityOneToManyToOneLazy</servlet-name>
+        <url-pattern>/PingServlet2Session2EntityOneToManyToOneLazy</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>PingServlet2Session2EntityOneToOneToMany</servlet-name>
+        <url-pattern>/PingServlet2Session2EntityOneToOneToMany</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>PingServlet2Session2EntityOneToManyToOneEager</servlet-name>
+        <url-pattern>/PingServlet2Session2EntityOneToManyToOneEager</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>PingServlet2Session2EJBCreate</servlet-name>
+        <url-pattern>/PingServlet2Session2EJBCreate</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>PingServlet2Session2EJBDestroy</servlet-name>
+        <url-pattern>/PingServlet2Session2EJBDestroy</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping><servlet-name>PingServlet2Session2EJBUpdate</servlet-name><url-pattern>/PingServlet2Session2EJBUpdate</url-pattern></servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>PingServlet2UnmanagedEntity</servlet-name>
+        <url-pattern>/PingServlet2UnmanagedEntity</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>PingServlet2Session2MDB</servlet-name>
+        <url-pattern>/PingServlet2Session2MDB</url-pattern>
+    </servlet-mapping>               
       <session-config>
          <session-timeout>30</session-timeout>
       </session-config>

Added: geronimo/daytrader/branches/ejb3/modules/web/src/main/webapp/ejb3_prims.html
URL: http://svn.apache.org/viewvc/geronimo/daytrader/branches/ejb3/modules/web/src/main/webapp/ejb3_prims.html?view=auto&rev=518744
==============================================================================
--- geronimo/daytrader/branches/ejb3/modules/web/src/main/webapp/ejb3_prims.html (added)
+++ geronimo/daytrader/branches/ejb3/modules/web/src/main/webapp/ejb3_prims.html Thu Mar 15 13:06:17 2007
@@ -0,0 +1,44 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+   "http://www.w3.org/TR/html4/loose.dtd">
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+        <title>EJB3 Primitives Page</title>
+    </head>
+    <body>
+
+    <h1>EJB3 Primitives Index Page</h1>
+    <h2>Stateless Session Bean Primitives</h2>
+    <a href="PingSLSessionRemote">Ping Servlet to Stateless Session Remote no Parameters</a><br>
+    <a href="PingSLSessionRemoteWithParameters">Ping Servlet to Stateless Session Remote with Parameters</a><br>
+    <a href="PingSLSessionRemote2SLSessionLocal">Ping Servlet to Stateless Session Remote to a Stateless Session Local no Parameters</a><br>
+    <a href="PingSLSessionLocal">Ping Servlet to Stateless Session Local no Parameters</a><br>
+    <a href="PingSLSessionLocalWithParameters">Ping Servlet to Stateless Session Local with Parameters</a><br>
+    <a href="PingSLSessionLocal2SLSessionRemote">Ping Servlet to Stateless Session Local to a Stateless Session Remote no Parameters</a><br>
+        
+    <h2>Stateful Session Bean Primitives</h2>
+    <a href="PingSFSessionRemoteCreate">Ping Servlet to Stateful Session Remote create</a><br>
+    <a href="PingSFSessionRemoteUpdate">Ping Servlet to Stateful Session Remote update bean</a><br>
+    <a href="PingSFSessionRemoteRemove">Ping Servlet to Stateful Session Remote remove</a><br>
+    
+    <h2>Entity Bean Primitives</h2>
+    <a href="PingServlet2Session2Entity">Ping Servlet to Local SLSession to Local Entity FBPK</a><br>
+    <a href="PingServlet2Session2EntityOneToOneLazy">Ping Servlet to Local SLSession to Local Entity FBPK / One to One CMR Lazy Fetch via jpql</a><br>
+    <a href="PingServlet2Session2EntityOneToOneEager">Ping Servlet to Local SLSession to Local Entity FBPK / One to One CMR Eager Fetch via jpql</a><br>
+    <a href="PingServlet2Session2EntityOneToManyLazy">Ping Servlet to Local SLSession to Local Entity FBPK / One to Many CMR Lazy Fetch</a><br>
+    <a href="PingServlet2Session2EntityOneToManyEager">Ping Servlet to Local SLSession to Local Entity FBPK / One to Many CMR Eager Fetch via jpql</a><br>
+    <a href="PingServlet2Session2EntityOneToManyTrueEager">Ping Servlet to Local SLSession to Local Entity FBPK / One to Many CMR Eager Fetch</a><br>
+    <a href="PingServlet2Session2EntityOneToManyToOneLazy">Ping Servlet to Local SLSession to Local Entity FBPK / One to Many to One CMR Lazy Fetch</a><br>
+    <a href="PingServlet2Session2EntityOneToManyToOneEager">Ping Servlet to Local SLSession to Local Entity FBPK / One to Many to One CMR Eager Fetch</a><br>
+    <a href="PingServlet2Session2EntityOneToOneToMany">Ping Servlet to Local SLSession to Local Entity FBPK / One to One to Many CMR Eager then Lazy Fetch</a><br>
+    <br>
+    <a href="PingServlet2Session2EJBCreate">Ping Servlet to Local SLSession to Local Entity Create</a><br>
+    <a href="PingServlet2Session2EJBUpdate">Ping Servlet to Local SLSession to Local Entity Update</a><br>
+    <a href="PingServlet2Session2EJBDestroy">Ping Servlet to Local SLSession to Local Entity Destroy</a><br>
+
+    <h2>MDB Primitives</h2>
+        <a href="PingServlet2Session2MDB">Ping Servlet to Remote SLSession to MDB</a><br>
+    
+    </body>
+</html>

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/webapp/ejb3_prims.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/webapp/ejb3_prims.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/daytrader/branches/ejb3/modules/web/src/main/webapp/ejb3_prims.html
------------------------------------------------------------------------------
    svn:mime-type = text/html



Mime
View raw message