geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jb...@apache.org
Subject svn commit: r816743 - in /geronimo/sandbox/jbohn/daytrader-bp: assemblies/web/daytrader-web-jdbc/src/main/webapp/ modules/core/src/main/java/org/apache/geronimo/samples/daytrader/core/ modules/core/src/main/java/org/apache/geronimo/samples/daytrader/co...
Date Fri, 18 Sep 2009 18:58:02 GMT
Author: jbohn
Date: Fri Sep 18 18:58:01 2009
New Revision: 816743

URL: http://svn.apache.org/viewvc?rev=816743&view=rev
Log:
finish removal of TradeAction in favor of using the TradeServices interface as retrieved from
the service registry

Removed:
    geronimo/sandbox/jbohn/daytrader-bp/modules/core/src/main/java/org/apache/geronimo/samples/daytrader/core/TradeAction.java
Modified:
    geronimo/sandbox/jbohn/daytrader-bp/assemblies/web/daytrader-web-jdbc/src/main/webapp/displayQuote.jsp
    geronimo/sandbox/jbohn/daytrader-bp/assemblies/web/daytrader-web-jdbc/src/main/webapp/marketSummary.jsp
    geronimo/sandbox/jbohn/daytrader-bp/modules/core/src/main/java/org/apache/geronimo/samples/daytrader/core/direct/TradeJDBCDirect.java

Modified: geronimo/sandbox/jbohn/daytrader-bp/assemblies/web/daytrader-web-jdbc/src/main/webapp/displayQuote.jsp
URL: http://svn.apache.org/viewvc/geronimo/sandbox/jbohn/daytrader-bp/assemblies/web/daytrader-web-jdbc/src/main/webapp/displayQuote.jsp?rev=816743&r1=816742&r2=816743&view=diff
==============================================================================
--- geronimo/sandbox/jbohn/daytrader-bp/assemblies/web/daytrader-web-jdbc/src/main/webapp/displayQuote.jsp
(original)
+++ geronimo/sandbox/jbohn/daytrader-bp/assemblies/web/daytrader-web-jdbc/src/main/webapp/displayQuote.jsp
Fri Sep 18 18:58:01 2009
@@ -15,14 +15,13 @@
   limitations under the License.
 -->
 <%@ page
-	import="java.math.BigDecimal, org.apache.geronimo.samples.daytrader.core.*, org.apache.geronimo.samples.daytrader.beans.*,
org.apache.geronimo.samples.daytrader.util.*"
+	import="java.math.BigDecimal, org.apache.geronimo.samples.daytrader.core.*, org.apache.geronimo.samples.daytrader.beans.*,
org.apache.geronimo.samples.daytrader.util.*, org.apache.geronimo.samples.daytrader.web.util.*"
 	session="true" isThreadSafe="true" isErrorPage="false"%>
 <% 
     String symbol = request.getParameter("symbol");
-    TradeServices tAction=null;
-    tAction = new TradeAction();
+    TradeServices tradeServices = ServletUtilities.getTradeServices();
 	try { 
-		QuoteDataBean quoteData = tAction.getQuote(symbol);
+		QuoteDataBean quoteData = tradeServices.getQuote(symbol);
 
  %>
 <TR align="center" bgcolor="#fafcb6">

Modified: geronimo/sandbox/jbohn/daytrader-bp/assemblies/web/daytrader-web-jdbc/src/main/webapp/marketSummary.jsp
URL: http://svn.apache.org/viewvc/geronimo/sandbox/jbohn/daytrader-bp/assemblies/web/daytrader-web-jdbc/src/main/webapp/marketSummary.jsp?rev=816743&r1=816742&r2=816743&view=diff
==============================================================================
--- geronimo/sandbox/jbohn/daytrader-bp/assemblies/web/daytrader-web-jdbc/src/main/webapp/marketSummary.jsp
(original)
+++ geronimo/sandbox/jbohn/daytrader-bp/assemblies/web/daytrader-web-jdbc/src/main/webapp/marketSummary.jsp
Fri Sep 18 18:58:01 2009
@@ -15,13 +15,12 @@
   limitations under the License.
 -->
 <%@ page
-	import="java.util.Collection, java.util.Iterator, org.apache.geronimo.samples.daytrader.core.*,
org.apache.geronimo.samples.daytrader.beans.*, org.apache.geronimo.samples.daytrader.util.*"
+	import="java.util.Collection, java.util.Iterator, org.apache.geronimo.samples.daytrader.core.*,
org.apache.geronimo.samples.daytrader.beans.*, org.apache.geronimo.samples.daytrader.util.*,
org.apache.geronimo.samples.daytrader.web.util.*"
 	session="true" isThreadSafe="true" isErrorPage="false"%>
 
 <%
-TradeServices tAction=null;
-tAction = new TradeAction();
-MarketSummaryDataBean marketSummaryData = tAction.getMarketSummary();
+TradeServices tradeServices = ServletUtilities.getTradeServices();
+MarketSummaryDataBean marketSummaryData = tradeServices.getMarketSummary();
 %>
 <TABLE border="1" bgcolor="#ffffff" width="100%"
 	style="font-size: smaller">

Modified: geronimo/sandbox/jbohn/daytrader-bp/modules/core/src/main/java/org/apache/geronimo/samples/daytrader/core/direct/TradeJDBCDirect.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/jbohn/daytrader-bp/modules/core/src/main/java/org/apache/geronimo/samples/daytrader/core/direct/TradeJDBCDirect.java?rev=816743&r1=816742&r2=816743&view=diff
==============================================================================
--- geronimo/sandbox/jbohn/daytrader-bp/modules/core/src/main/java/org/apache/geronimo/samples/daytrader/core/direct/TradeJDBCDirect.java
(original)
+++ geronimo/sandbox/jbohn/daytrader-bp/modules/core/src/main/java/org/apache/geronimo/samples/daytrader/core/direct/TradeJDBCDirect.java
Fri Sep 18 18:58:01 2009
@@ -429,8 +429,6 @@
         commit(conn);
 
         // signify this order for user userID is complete
-//        TradeAction tradeAction = new TradeAction(this);
-//        tradeAction.orderCompleted(userID, orderID);
         orderCompleted(userID, orderID);
 
         return orderData;



Mime
View raw message