Return-Path: Delivered-To: apmail-geronimo-scm-archive@www.apache.org Received: (qmail 35576 invoked from network); 28 Aug 2009 19:53:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Aug 2009 19:53:06 -0000 Received: (qmail 65724 invoked by uid 500); 28 Aug 2009 19:53:06 -0000 Delivered-To: apmail-geronimo-scm-archive@geronimo.apache.org Received: (qmail 65662 invoked by uid 500); 28 Aug 2009 19:53:06 -0000 Mailing-List: contact scm-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list scm@geronimo.apache.org Received: (qmail 65653 invoked by uid 99); 28 Aug 2009 19:53:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Aug 2009 19:53:06 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Aug 2009 19:53:01 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id E8B122388994; Fri, 28 Aug 2009 19:52:16 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r809008 [7/7] - in /geronimo/daytrader/trunk: assemblies/ assemblies/daytrader-javaee/ assemblies/daytrader-javaee/src/ assemblies/daytrader-javaee/src/main/ assemblies/daytrader-javaee/src/main/resources/ assemblies/daytrader-javaee/src/ma... Date: Fri, 28 Aug 2009 19:52:14 -0000 To: scm@geronimo.apache.org From: dwoods@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090828195216.E8B122388994@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Added: geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/runStats.jsp URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/runStats.jsp?rev=809008&view=auto ============================================================================== --- geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/runStats.jsp (added) +++ geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/runStats.jsp Fri Aug 28 19:52:10 2009 @@ -0,0 +1,324 @@ + +<%-- + 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. +--%> + + + +Welcome to Trade + + +<%@ page import="org.apache.geronimo.samples.daytrader.*" + session="false" isThreadSafe="true" isErrorPage="false"%> + + +<% +double loginPercentage = (double) ((TradeConfig.getScenarioMixes())[TradeConfig.workloadMix][TradeConfig.LOGOUT_OP]) / 100.0; +double logoutPercentage = (double) ((TradeConfig.getScenarioMixes())[TradeConfig.workloadMix][TradeConfig.LOGOUT_OP]) / 100.0; +double buyOrderPercentage = (double) ((TradeConfig.getScenarioMixes())[TradeConfig.workloadMix][TradeConfig.BUY_OP]) / 100.0; +double sellOrderPercentage = (double) ((TradeConfig.getScenarioMixes())[TradeConfig.workloadMix][TradeConfig.SELL_OP]) / 100.0; +double orderPercentage = buyOrderPercentage + sellOrderPercentage; +double registerPercentage = (double) ((TradeConfig.getScenarioMixes())[TradeConfig.workloadMix][TradeConfig.REGISTER_OP]) / 100.0; + +int logins = runStatsData.getSumLoginCount()-runStatsData.getTradeUserCount(); //account for each user being logged in up front +if (logins < 0 ) logins = 0; //no requests before reset +//double expectedRequests = ((double) logins) / loginPercentage; +double expectedRequests = (double)TradeConfig.getScenarioCount(); +TradeConfig.setScenarioCount(0); + +int verifyPercent = TradeConfig.verifyPercent; +%> +<%!// verifies 2 values are w/in tradeConfig.verifyPercent percent +String verify(double expected, double actual, int verifyPercent) +{ + String retVal = ""; + if ( (expected==0.0) || (actual == 0.0) ) + return "N/A"; + double check = (actual / expected) * 100 - 100; + //PASS + retVal += check +"% "; + if ( (check>=(-1.0*verifyPercent)) && (check<=verifyPercent) ) + retVal += " Pass"; + else + retVal += " Fail4"; + if (check > 0.0) + retVal = "+" + retVal; +//System.out.println("verify --- expected="+expected+" actual="+actual+ " check="+check); + return retVal; +} +String verify(int expected, int actual, int verifyPercent) +{ + return verify((double)expected, (double)actual, verifyPercent); +} +%> +
+ + + + + + + + +
DayTrader Scenario Runtime StatisticsDayTrader
+ + + + + + + + +
<% +String status; +status = (String) request.getAttribute("status"); +if ( status != null )out.print(status); +%>Modify runtime configuration
+
+ + + + + + +
+ + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Benchmark scenario + statistics
Benchmark runtime + configuration summaryValue
Run-Time Mode<%= (TradeConfig.getRunTimeModeNames())[TradeConfig.runTimeMode] %>
Order-Processing + Mode<%= (TradeConfig.getOrderProcessingModeNames())[TradeConfig.orderProcessingMode]%>
Scenario Workload + Mix<%= (TradeConfig.getWorkloadMixNames())[TradeConfig.workloadMix]%>
Web Interface<%= (TradeConfig.getWebInterfaceNames())[TradeConfig.webInterface]%>
Active Traders / + Trade User population<%= runStatsData.getTradeUserCount() %> / <%= TradeConfig.getMAX_USERS() %> +
Active Stocks / + Trade Stock population<%= TradeConfig.getMAX_QUOTES() %> / <%= runStatsData.getTradeStockCount() %>
Benchmark + scenario verification
Run StatisticScenario verification testExpected ValueActual ValuePass/Fail
Active StocksActive stocks should generally equal the db population of + stocks<%= runStatsData.getTradeStockCount() %><%= TradeConfig.getMAX_QUOTES() %><%= ( runStatsData.getTradeStockCount() == TradeConfig.getMAX_QUOTES() ) ? "Pass":"Warn" %>
Active TradersActive traders should generally equal the db population of + traders<%= runStatsData.getTradeUserCount() %><%= TradeConfig.getMAX_USERS() %><%= ( runStatsData.getTradeUserCount() == TradeConfig.getMAX_USERS() ) ? "Pass":"Warn" %>
Estimated total requestsActual benchmark scenario requests should be within +/- 2% + of the estimated number of requests in the last benchmark run + to pass.<%= expectedRequests %>see2see2
New Users Registered <%= registerPercentage * 100 %>% of expected requests (<%= registerPercentage%> + * <%= expectedRequests %> )<%= registerPercentage * expectedRequests %><%= runStatsData.getNewUserCount() %><%= verify(registerPercentage * expectedRequests, (double)runStatsData.getNewUserCount(), verifyPercent) %>
Logins <%= loginPercentage * 100 %>% of expected requests (<%= loginPercentage%> + * <%= expectedRequests %> ) + initial login<%= loginPercentage * expectedRequests + runStatsData.getTradeUserCount() %><%= runStatsData.getSumLoginCount() + runStatsData.getTradeUserCount() %><%= verify((double)loginPercentage * expectedRequests, (double)runStatsData.getSumLoginCount(), verifyPercent)%>
Logouts #logouts must be >= #logins-active traders ( <%= runStatsData.getSumLoginCount() %> + - <%= TradeConfig.getMAX_USERS() %> )<%= runStatsData.getSumLoginCount()- TradeConfig.getMAX_USERS() %><%= runStatsData.getSumLogoutCount() %><%= (runStatsData.getSumLogoutCount() >= (runStatsData.getSumLoginCount()- TradeConfig.getMAX_USERS())) ? "Pass" : "Fail4" %> +
User Holdings Trade users own an average of 5 holdings, 5* total Users = + ( 5 * <%= runStatsData.getTradeUserCount() %>)<%= 5 * runStatsData.getTradeUserCount() %><%= runStatsData.getHoldingCount() %><%= verify( 5 * runStatsData.getTradeUserCount(), runStatsData.getHoldingCount(), verifyPercent ) %>
Buy Order Count <%= buyOrderPercentage * 100 %>% of expected requests (<%= buyOrderPercentage%> + * <%= expectedRequests %> ) + current holdings count<%= buyOrderPercentage * expectedRequests + runStatsData.getHoldingCount() %><%= runStatsData.getBuyOrderCount() %><%= verify(buyOrderPercentage * expectedRequests + runStatsData.getHoldingCount() , (double)runStatsData.getBuyOrderCount(), verifyPercent)%>
Sell Order Count <%= sellOrderPercentage * 100 %>% of expected requests (<%= sellOrderPercentage%> + * <%= expectedRequests %> )<%= sellOrderPercentage * expectedRequests %><%= runStatsData.getSellOrderCount() %><%= verify(sellOrderPercentage * expectedRequests, (double)runStatsData.getSellOrderCount(), verifyPercent)%>
Total Order Count <%= orderPercentage * 100 %>% of expected requests (<%= orderPercentage%> + * <%= expectedRequests %> ) + current holdings count<%= orderPercentage * expectedRequests + runStatsData.getHoldingCount() %><%= runStatsData.getOrderCount() %><%= verify(orderPercentage * expectedRequests + runStatsData.getHoldingCount(), (double)runStatsData.getOrderCount(), verifyPercent)%>
Open Orders All orders should be completed before reset30<%= runStatsData.getOpenOrderCount() %><%= (runStatsData.getOpenOrderCount() > 0) ? "Fail4" : "Pass" %>
Cancelled Orders Orders are cancelled if an error is encountered during + order processing.0<%= runStatsData.getCancelledOrderCount() %><%= (runStatsData.getCancelledOrderCount() > 0) ? "Fail4" : "Pass" %>
Orders remaining after reset After Trade reset, each user should carry an average of 5 + orders in the database. 5* total Users = (5 * <%= runStatsData.getTradeUserCount() %>)<%= 5 * runStatsData.getTradeUserCount() %><%= runStatsData.getOrderCount()-runStatsData.getDeletedOrderCount() %><%= verify( 5 * runStatsData.getTradeUserCount(), runStatsData.getOrderCount()-runStatsData.getDeletedOrderCount(), verifyPercent ) %>
+
+
+
+
+
    +
  1. Benchmark verification tests require a Trade + Reset between each benchmark run.
  2. +
  3. The expected value of benchmark requests is + computed based on the the count from the Web application since + the last Trade reset.The actual value of benchmark request + requires user verification and may be incorrect for a cluster.
  4. +
  5. Orders are processed asynchronously in Trade. + Therefore, processing may continue beyond the end of a benchmark + run. Trade Reset should not be invoked until processing is + completed.
  6. +
  7. Actual values must be within <%= TradeConfig.verifyPercent %>% + of corresponding estimated + values to pass verification.
  8. +
+
+
+
+ + + + + + + + + + + + + + + + +
+
+
DayTrader Scenario Runtime StatisticsDayTrader
Apache Geronimo Performance Benchmark + Sample DayTrader
+ Copyright 2005, Apache Software Foundation
+
+ + Propchange: geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/runStats.jsp ------------------------------------------------------------------------------ svn:eol-style = native Added: geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/sample.jsp URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/sample.jsp?rev=809008&view=auto ============================================================================== --- geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/sample.jsp (added) +++ geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/sample.jsp Fri Aug 28 19:52:10 2009 @@ -0,0 +1,26 @@ + +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> +<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %> +<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %> + + + +Hello world JSP on + + Propchange: geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/sample.jsp ------------------------------------------------------------------------------ svn:eol-style = native Added: geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/style.css URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/style.css?rev=809008&view=auto ============================================================================== --- geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/style.css (added) +++ geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/style.css Fri Aug 28 19:52:10 2009 @@ -0,0 +1,24 @@ +/*====================================================================== +* Licensed to the Apache Software Foundation (ASF) under one or more +* contributor license agreements. See the NOTICE file distributed with +* this work for additional information regarding copyright ownership. +* The ASF licenses this file to You under the Apache License, Version 2.0 +* (the "License"); you may not use this file except in compliance with +* the License. You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +======================================================================*/ +A:HOVER { + text-decoration: underline; color: red; +} + +A:ACTIVE { + color: red; + font-weight: bold +} \ No newline at end of file Propchange: geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/style.css ------------------------------------------------------------------------------ svn:eol-style = native Added: geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/tradehome.jsp URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/tradehome.jsp?rev=809008&view=auto ============================================================================== --- geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/tradehome.jsp (added) +++ geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/tradehome.jsp Fri Aug 28 19:52:10 2009 @@ -0,0 +1,226 @@ + + + + + +Welcome to DayTrader + + + +<%@ page + import="java.util.Collection, java.util.Iterator, java.math.BigDecimal, org.apache.geronimo.samples.daytrader.*, org.apache.geronimo.samples.daytrader.util.*" + session="true" isThreadSafe="true" isErrorPage="false"%> + + + + + + + + + + + + + + + + + + + + + <% +Collection closedOrders = (Collection)request.getAttribute("closedOrders"); +if ( (closedOrders != null) && (closedOrders.size()>0) ) +{ +%> + + + + + + + <% +} +%> + +
DayTrader HomeDayTrader
Home Account Portfolio Quotes/TradeLogoff
+
+ <%= new java.util.Date() %>
Alert: + The following Order(s) have completed.
+ + + <% + Iterator it = closedOrders.iterator(); + while (it.hasNext() ) + { + OrderDataBean closedOrderData = (OrderDataBean)it.next(); +%> + + + + + + + + + + + + + + + + + + + + + <% + } +%> + + +
order IDorder statuscreation datecompletion datetxn feetypesymbolquantity
<%= closedOrderData.getOrderID()%><%= closedOrderData.getOrderStatus()%><%= closedOrderData.getOpenDate()%><%= closedOrderData.getCompletionDate()%><%= closedOrderData.getOrderFee()%><%= closedOrderData.getOrderType()%><%= FinancialUtils.printQuoteLink(closedOrderData.getSymbol())%><%= closedOrderData.getQuantity()%>
+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Welcome  <%= accountData.getProfileID() %>,
User Statistics +
account ID:
+
account created:
+ total logins:
+ session created:
+
<%= accountData.getAccountID() +%>
+ <%= accountData.getCreationDate() +%>
+ <%= accountData.getLoginCount() +%>
+ <%= (java.util.Date) session.getAttribute("sessionCreationDate") +%>
+
Account Summary
cash balance:
+ number of holdings:
+ total of holdings:
+ sum of cash/holdings
+ opening balance:
+
+
+
<% + BigDecimal openBalance = accountData.getOpenBalance(); + BigDecimal balance = accountData.getBalance(); + BigDecimal holdingsTotal = FinancialUtils.computeHoldingsTotal(holdingDataBeans); + BigDecimal sumOfCashHoldings = balance.add(holdingsTotal); + BigDecimal gain = FinancialUtils.computeGain(sumOfCashHoldings, openBalance); + BigDecimal gainPercent = FinancialUtils.computeGainPercent(sumOfCashHoldings, openBalance); + %>$ <%= balance %>
+ <%= holdingDataBeans.size()%>
+ $ <%= holdingsTotal %>
+ $ <%= sumOfCashHoldings %>
+ $ <%= openBalance%>
+ +
+
current + gain/(loss):$ <%= FinancialUtils.printGainHTML(gain) %> <%= FinancialUtils.printGainPercentHTML(gainPercent) %>
+

+
+ + + + + + + + + + + + + +
+
+
+ + + + + + + +
Note: Click any symbol for a + quote or to trade. +
+
+
+
DayTrader HomeDayTrader
+ + Propchange: geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/tradehome.jsp ------------------------------------------------------------------------------ svn:eol-style = native Added: geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/tradehomeImg.jsp URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/tradehomeImg.jsp?rev=809008&view=auto ============================================================================== --- geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/tradehomeImg.jsp (added) +++ geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/tradehomeImg.jsp Fri Aug 28 19:52:10 2009 @@ -0,0 +1,237 @@ + + + + + +Welcome to Trade + + + +<%@ page + import="java.util.Collection, java.util.Iterator, java.math.BigDecimal, org.apache.geronimo.samples.daytrader.*, org.apache.geronimo.samples.daytrader.util.*" + session="true" isThreadSafe="true" isErrorPage="false"%> + + + + + + + + + + + + + + + + + + + + + <% +Collection closedOrders = (Collection)request.getAttribute("closedOrders"); +if ( (closedOrders != null) && (closedOrders.size()>0) ) +{ +%> + + + + + + + <% +} +%> + +
DayTrader HomeDayTrader

+ <%= new java.util.Date() %>
Alert: + The following Order(s) have completed.
+ + + <% + Iterator it = closedOrders.iterator(); + while (it.hasNext() ) + { + OrderDataBean closedOrderData = (OrderDataBean)it.next(); +%> + + + + + + + + + + + + + + + + + + + + + <% + } +%> + + +
order IDorder statuscreation datecompletion datetxn feetypesymbolquantity
<%= closedOrderData.getOrderID()%><%= closedOrderData.getOrderStatus()%><%= closedOrderData.getOpenDate()%><%= closedOrderData.getCompletionDate()%><%= closedOrderData.getOrderFee()%><%= closedOrderData.getOrderType()%><%= FinancialUtils.printQuoteLink(closedOrderData.getSymbol())%><%= closedOrderData.getQuantity()%>
+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Welcome  <%= accountData.getProfileID() %>,
User Statistics +
account ID:
+
account created:
+ total logins:
+ session created:
+
<%= accountData.getAccountID() +%>
+ <%= accountData.getCreationDate() +%>
+ <%= accountData.getLoginCount() +%>
+ <%= (java.util.Date) session.getAttribute("sessionCreationDate") +%>
+
Account Summary
cash balance:
+ number of holdings:
+ total of holdings:
+ sum of cash/holdings
+ opening balance:
+
+
+
<% + BigDecimal openBalance = accountData.getOpenBalance(); + BigDecimal balance = accountData.getBalance(); + BigDecimal holdingsTotal = FinancialUtils.computeHoldingsTotal(holdingDataBeans); + BigDecimal sumOfCashHoldings = balance.add(holdingsTotal); + BigDecimal gain = FinancialUtils.computeGain(sumOfCashHoldings, openBalance); + BigDecimal gainPercent = FinancialUtils.computeGainPercent(sumOfCashHoldings, openBalance); + %>$<%= balance %>
+ <%= holdingDataBeans.size()%>
+ $<%= holdingsTotal %>
+ $<%= sumOfCashHoldings %>
+ $<%= openBalance%>
+ +
+
current + gain/(loss):$ <%= FinancialUtils.printGainHTML(gain) %> <%= FinancialUtils.printGainPercentHTML(gainPercent) %>
+

+
+ + + + + + + + + + + + + + + + +
+ + + + + + + +
Note: Click any symbol for a + quote or to trade. +
+
+
+
DayTrader HomeDayTrader
+ +
+ + Propchange: geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/tradehomeImg.jsp ------------------------------------------------------------------------------ svn:eol-style = native Added: geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/web_prmtv.html URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/web_prmtv.html?rev=809008&view=auto ============================================================================== --- geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/web_prmtv.html (added) +++ geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/web_prmtv.html Fri Aug 28 19:52:10 2009 @@ -0,0 +1,272 @@ + + + + + + +Web Primitives + + + +
+ + + + + + + +
+

Web and EJB Primitive Tests

+
+
+ + + + + + + + + + + +
Primitive Test Suite
+

The Geronimo performance benchmark sample provides + a suite of web primitives. These primitives singularly test key + operations in the enterprise Java programming model. Links to each of + the web primitive tests are provided below along with a description + of each operation.

+

Note that some primitives below can have their main operations + repeated. These operations are marked with a red + *. In order to adjust the repetition, change + the primitive iteration value in the Trade configuration page.

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Web Container ping suite
PingHtmlPingHtml is the most basic operation providing + access to a simple "Hello World" page of static HTML.
Explicit GCInvoke Garbage Collection on AppServer. Reports + heap statistics after the GC has completed.
PingServletPingServlet tests fundamental dynamic HTML + creation through server side servlet processing.
PingServletWriter PingServletWriter extends PingServlet by using a + PrintWriter for formatted output vs. the output stream used by + PingServlet.
PingServlet2Include*PingServlet2Include tests response inclusion. + Servlet 1 includes the response of Servlet 2.
PingServlet2ServletPingServlet2Servlet tests request dispatching. + Servlet 1, the controller, creates a new JavaBean object forwards the + request with the JavaBean added to Servlet 2. Servlet 2 obtains + access to the JavaBean through the Servlet request object and + provides dynamic HTML output based on the JavaBean data.
PingJSPPingJSP tests a direct call to JavaServer Page + providing server-side dynamic HTML through JSP scripting.
PingJSPELPingJSPEL tests a direct call to JavaServer Page + providing server-side dynamic HTML through JSP scripting and the + usage of the new JSP 2.0 Expression Language.
PingServlet2JSPPingServlet2JSP tests a commonly used design + pattern, where a request is issued to servlet providing server side + control processing. The servlet creates a JavaBean object with + dynamically set attributes and forwards the bean to the JSP through a + RequestDispatcher The JSP obtains access to the JavaBean and provides + formatted display with dynamic HTML output based on the JavaBean + data.
PingHTTPSession1 + PingHTTPSession1 - SessionID tests + fundamental HTTP session function by creating a unique session ID for + each individual user. The ID is stored in the users session and is + accessed and displayed on each user request.
PingHTTPSession2PingHTTPSession2 session create/destroy further + extends the previous test by invalidating the HTTP Session on every + 5th user access. This results in testing HTTPSession create and + destroy
PingHTTPSession3PingHTTPSession3 large session object tests + the servers ability to manage and persist large HTTPSession data + objects. The servlet creates a large custom java object. The class + contains multiple data fields and results in 2048 bytes of data. This + large session object is retrieved and stored to the session on each + user request.
PingJDBCRead*PingJDBCRead tests fundamental servlet to JDBC + access to a database performing a single-row read using a prepared + SQL statment.
PingJDBCWrite*PingJDBCRead tests fundamental servlet to JDBC + access to a database performing a single-row write using a prepared + SQL statment.
PingServlet2JNDI*PingServlet2JNDI tests the fundamental J2EE + operation of a servlet allocating a JNDI context and performing a + JNDI lookup of a JDBC DataSource.
EJB 3 Container ping suite
PingServlet2Session*PingServlet2Session tests key function of a + servlet call to a stateless Session EJB. The Session EJB performs a + simple calculation and returns the result
PingServlet2Entity*
PingServlet2Entity tests key function of a + servlet call to an EJB 3.0 Container Managed Entity. In this test the + EJB entity represents a single row in the database table.
PingServlet2Session2Entity*This tests the full servlet to Session EJB to + Entity EJB path to retrieve a single row from the database.
PingServlet2Session2
+ EntityCollection
*
This test extends the previous EJB Entity test by + calling a Session EJB which uses a finder method on the Entity that + returns a collection of Entity objects. Each object is displayed by + the servlet.
PingServlet2Session2CMROne2One*This test drives an Entity EJB to get another + Entity EJB's data through an EJB 3.0 CMR One to One relationship.
PingServlet2Session2CMROne2Many*This test drives an Entity EJB to get another + Entity EJB's data through an EJB 3.0 CMR One to Many relationship.
PingServlet2Session2JDBC*This tests the full servlet to Session EJB to + JDBC path to retrieve a single row from the database.
PingServlet2Session2
+ JDBCCollection
*
This test extends the previous JDBC test by + calling a Session EJB to JDBC path which returns multiple rows + from the database.
PingServlet2MDBQueue*PingServlet2MDBQueue drives messages to a Queue + based Message Driven EJB (MDB). Each request to the servlet posts a + message to the Queue. The MDB receives the message asynchronously and + prints message delivery statistics on each 100th message. + Note: Not intended for performance testing.
PingServlet2MDBTopic*PingServlet2MDBTopic drives messages to a Topic + based Publish/Subscribe Message Driven EJB (MDB). Each request to the + servlet posts a message to the Topic. The TradeStreamMDB receives the + message asynchronously and prints message delivery statistics on each + 100th message. Other subscribers to the Topic will also receive the + messages. Note: Not intended for performance + testing.
PingServlet2TwoPhase*PingServlet2TwoPhase drives a Session EJB which + invokes an Entity EJB with findByPrimaryKey (DB Access) followed by + posting a message to an MDB through a JMS Queue (Message access). + These operations are wrapped in a global 2-phase transaction and + commit.
+ + Propchange: geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/web_prmtv.html ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/web_prmtv.html ------------------------------------------------------------------------------ svn:mime-type = text/html Added: geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/welcome.jsp URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/welcome.jsp?rev=809008&view=auto ============================================================================== --- geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/welcome.jsp (added) +++ geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/welcome.jsp Fri Aug 28 19:52:10 2009 @@ -0,0 +1,121 @@ + + + + +Trade Login + + + +<%@ page session="false"%> + + + + + + + +
DayTrader LoginDayTrader
+ + + + + + + + +
<% String results; +results = (String) request.getAttribute("results"); +if ( results != null )out.print(results); +%>
+
+ + + + + + + + + + + + + +
Log in +
+
Username        +           Password       +                     +            
+
         
+
+ + + + + + + + + + + + + + + + + + + + +
+
+
First time user?  Please + Register
+
Register With DayTrader +
+
+
+
+ + + + + + + + + + + + + +
+
+
DayTrader LoginDayTrader
+ + Propchange: geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/welcome.jsp ------------------------------------------------------------------------------ svn:eol-style = native Added: geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/welcomeImg.jsp URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/welcomeImg.jsp?rev=809008&view=auto ============================================================================== --- geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/welcomeImg.jsp (added) +++ geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/welcomeImg.jsp Fri Aug 28 19:52:10 2009 @@ -0,0 +1,120 @@ + +<%-- + 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. +--%> + + +Trade Login + + + +<%@ page session="false"%> + + + + + + + +
DayTrader LoginDayTrader
+ + + + + + + + + +
<% String results; +results = (String) request.getAttribute("results"); +if ( results != null )out.print(results); +%>
+
+ + + + + + + + + + + + + +
Log in +
+
Username        +           Password       +                     +            
+
         
+
+ + + + + + + + + + + + + + + + + + + + +
+
+
First time user?  Please + Register
+
Register With DayTrader +
+
+
+
+ + + + + + + + + + +

+
DayTrader LoginDayTrader
+ + Propchange: geronimo/daytrader/trunk/assemblies/daytrader-web-ejb/src/main/webapp/welcomeImg.jsp ------------------------------------------------------------------------------ svn:eol-style = native Modified: geronimo/daytrader/trunk/assemblies/pom.xml URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/assemblies/pom.xml?rev=809008&r1=809007&r2=809008&view=diff ============================================================================== --- geronimo/daytrader/trunk/assemblies/pom.xml (original) +++ geronimo/daytrader/trunk/assemblies/pom.xml Fri Aug 28 19:52:10 2009 @@ -31,10 +31,11 @@ pom - daytrader-web-jdbc + daytrader-web-ejb + daytrader-javaee Modified: geronimo/daytrader/trunk/plugins/daytrader-db2-datasource/pom.xml URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/plugins/daytrader-db2-datasource/pom.xml?rev=809008&r1=809007&r2=809008&view=diff ============================================================================== --- geronimo/daytrader/trunk/plugins/daytrader-db2-datasource/pom.xml (original) +++ geronimo/daytrader/trunk/plugins/daytrader-db2-datasource/pom.xml Fri Aug 28 19:52:10 2009 @@ -17,7 +17,7 @@ --> - + org.apache.geronimo.daytrader plugins @@ -27,7 +27,7 @@ org.apache.geronimo.daytrader.plugins daytrader-db2-datasource car - Daytrader :: DB2 DataSource + Daytrader :: Plugins - DB2 DataSource Modified: geronimo/daytrader/trunk/plugins/daytrader-derby-datasource/pom.xml URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/plugins/daytrader-derby-datasource/pom.xml?rev=809008&r1=809007&r2=809008&view=diff ============================================================================== --- geronimo/daytrader/trunk/plugins/daytrader-derby-datasource/pom.xml (original) +++ geronimo/daytrader/trunk/plugins/daytrader-derby-datasource/pom.xml Fri Aug 28 19:52:10 2009 @@ -17,7 +17,7 @@ --> - + org.apache.geronimo.daytrader plugins @@ -27,7 +27,7 @@ org.apache.geronimo.daytrader.plugins daytrader-derby-datasource car - Daytrader :: Derby DataSource + Daytrader :: Plugins - Derby DataSource Modified: geronimo/daytrader/trunk/plugins/daytrader-jetty/pom.xml URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/plugins/daytrader-jetty/pom.xml?rev=809008&r1=809007&r2=809008&view=diff ============================================================================== --- geronimo/daytrader/trunk/plugins/daytrader-jetty/pom.xml (original) +++ geronimo/daytrader/trunk/plugins/daytrader-jetty/pom.xml Fri Aug 28 19:52:10 2009 @@ -17,7 +17,8 @@ --> - + + org.apache.geronimo.daytrader plugins @@ -27,13 +28,12 @@ org.apache.geronimo.daytrader.plugins daytrader-jetty car - Daytrader :: Jetty - + Daytrader :: Plugins - Jetty - org.apache.geronimo.daytrader - daytrader-ear + org.apache.geronimo.daytrader.assemblies + daytrader-javaee ${version} ear provided @@ -172,8 +172,8 @@ ${clientDeployer} - org.apache.geronimo.daytrader - daytrader-ear + org.apache.geronimo.daytrader.assemblies + daytrader-javaee ear Modified: geronimo/daytrader/trunk/plugins/daytrader-jms/pom.xml URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/plugins/daytrader-jms/pom.xml?rev=809008&r1=809007&r2=809008&view=diff ============================================================================== --- geronimo/daytrader/trunk/plugins/daytrader-jms/pom.xml (original) +++ geronimo/daytrader/trunk/plugins/daytrader-jms/pom.xml Fri Aug 28 19:52:10 2009 @@ -29,9 +29,8 @@ org.apache.geronimo.daytrader.plugins daytrader-jms - Daytrader :: JMS Resource + Daytrader :: Plugins - JMS Resource car - 2.2-SNAPSHOT @@ -69,33 +68,34 @@ ${geronimoVersion} - - - - org.apache.geronimo.buildsupport - car-maven-plugin - - true - - - - false - + + + + + org.apache.geronimo.buildsupport + car-maven-plugin + + true + + + + false + true true true - - ${gbeanDeployer} - ${j2eeDeployer} - ${connectorDeployer} - - - org.apache.geronimo.modules - geronimo-activemq-ra - rar - + + ${gbeanDeployer} + ${j2eeDeployer} + ${connectorDeployer} + + + org.apache.geronimo.modules + geronimo-activemq-ra + rar + ${geronimoVersion} @@ -113,9 +113,9 @@ org.apache.geronimo.daytrader.plugins/daytrader-jms//car --> - - - - - + + + + + Modified: geronimo/daytrader/trunk/plugins/daytrader-oracle-datasource/pom.xml URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/plugins/daytrader-oracle-datasource/pom.xml?rev=809008&r1=809007&r2=809008&view=diff ============================================================================== --- geronimo/daytrader/trunk/plugins/daytrader-oracle-datasource/pom.xml (original) +++ geronimo/daytrader/trunk/plugins/daytrader-oracle-datasource/pom.xml Fri Aug 28 19:52:10 2009 @@ -17,7 +17,7 @@ --> - + org.apache.geronimo.daytrader plugins @@ -27,7 +27,7 @@ org.apache.geronimo.daytrader.plugins daytrader-oracle-datasource car - Daytrader :: Oracle DataSource + Daytrader :: Plugins - Oracle DataSource Modified: geronimo/daytrader/trunk/plugins/daytrader-tomcat/pom.xml URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/plugins/daytrader-tomcat/pom.xml?rev=809008&r1=809007&r2=809008&view=diff ============================================================================== --- geronimo/daytrader/trunk/plugins/daytrader-tomcat/pom.xml (original) +++ geronimo/daytrader/trunk/plugins/daytrader-tomcat/pom.xml Fri Aug 28 19:52:10 2009 @@ -17,7 +17,7 @@ --> - + org.apache.geronimo.daytrader plugins @@ -27,12 +27,12 @@ org.apache.geronimo.daytrader.plugins daytrader-tomcat car - Daytrader :: Tomcat + Daytrader :: Plugins - Tomcat - org.apache.geronimo.daytrader - daytrader-ear + org.apache.geronimo.daytrader.assemblies + daytrader-javaee ${version} ear provided Modified: geronimo/daytrader/trunk/plugins/pom.xml URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/plugins/pom.xml?rev=809008&r1=809007&r2=809008&view=diff ============================================================================== --- geronimo/daytrader/trunk/plugins/pom.xml (original) +++ geronimo/daytrader/trunk/plugins/pom.xml Fri Aug 28 19:52:10 2009 @@ -27,7 +27,7 @@ org.apache.geronimo.daytrader plugins - DayTrader :: Geronimo Plugins + DayTrader :: Plugins pom