geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jb...@apache.org
Subject svn commit: r817781 - in /geronimo/sandbox/jbohn/daytrader-bp: assemblies/web/daytrader-web-jdbc/ assemblies/web/daytrader-web-jdbc/src/main/webapp/WEB-INF/ modules/beans/ modules/core/ modules/util/ modules/web/src/main/java/org/apache/geronimo/sample...
Date Tue, 22 Sep 2009 19:22:28 GMT
Author: jbohn
Date: Tue Sep 22 19:22:12 2009
New Revision: 817781

URL: http://svn.apache.org/viewvc?rev=817781&view=rev
Log:
more cleanup - removing references directly to TradeJDBCDirect and eliminating the unnecessary
context listener

Removed:
    geronimo/sandbox/jbohn/daytrader-bp/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/TradeJDBCContextListener.java
Modified:
    geronimo/sandbox/jbohn/daytrader-bp/assemblies/web/daytrader-web-jdbc/pom.xml
    geronimo/sandbox/jbohn/daytrader-bp/assemblies/web/daytrader-web-jdbc/src/main/webapp/WEB-INF/web.xml
    geronimo/sandbox/jbohn/daytrader-bp/modules/beans/pom.xml
    geronimo/sandbox/jbohn/daytrader-bp/modules/core/pom.xml
    geronimo/sandbox/jbohn/daytrader-bp/modules/util/pom.xml
    geronimo/sandbox/jbohn/daytrader-bp/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/TradeAppServlet.java
    geronimo/sandbox/jbohn/daytrader-bp/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/TradeBuildDB.java
    geronimo/sandbox/jbohn/daytrader-bp/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/TradeServletAction.java
    geronimo/sandbox/jbohn/daytrader-bp/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/PingJDBCWrite.java

Modified: geronimo/sandbox/jbohn/daytrader-bp/assemblies/web/daytrader-web-jdbc/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/jbohn/daytrader-bp/assemblies/web/daytrader-web-jdbc/pom.xml?rev=817781&r1=817780&r2=817781&view=diff
==============================================================================
--- geronimo/sandbox/jbohn/daytrader-bp/assemblies/web/daytrader-web-jdbc/pom.xml (original)
+++ geronimo/sandbox/jbohn/daytrader-bp/assemblies/web/daytrader-web-jdbc/pom.xml Tue Sep
22 19:22:12 2009
@@ -180,7 +180,9 @@
                   <Import-Package>
                       org.apache.geronimo.samples.daytrader.beans;version=1.0,
                       org.apache.geronimo.samples.daytrader.core;version=1.0,
+<!--
                       org.apache.geronimo.samples.daytrader.core.direct;version=1.0,
+-->
                       org.apache.geronimo.samples.daytrader.util;version=1.0
 <!--
                       *

Modified: geronimo/sandbox/jbohn/daytrader-bp/assemblies/web/daytrader-web-jdbc/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/jbohn/daytrader-bp/assemblies/web/daytrader-web-jdbc/src/main/webapp/WEB-INF/web.xml?rev=817781&r1=817780&r2=817781&view=diff
==============================================================================
--- geronimo/sandbox/jbohn/daytrader-bp/assemblies/web/daytrader-web-jdbc/src/main/webapp/WEB-INF/web.xml
(original)
+++ geronimo/sandbox/jbohn/daytrader-bp/assemblies/web/daytrader-web-jdbc/src/main/webapp/WEB-INF/web.xml
Tue Sep 22 19:22:12 2009
@@ -31,10 +31,6 @@
         <servlet-name>TradeAppServlet</servlet-name>
     </filter-mapping>
     
-    <listener>
-        <listener-class>org.apache.geronimo.samples.daytrader.web.TradeJDBCContextListener</listener-class>
-    </listener>
-    
     <servlet>
         <display-name>TradeAppServlet</display-name>
         <servlet-name>TradeAppServlet</servlet-name>

Modified: geronimo/sandbox/jbohn/daytrader-bp/modules/beans/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/jbohn/daytrader-bp/modules/beans/pom.xml?rev=817781&r1=817780&r2=817781&view=diff
==============================================================================
--- geronimo/sandbox/jbohn/daytrader-bp/modules/beans/pom.xml (original)
+++ geronimo/sandbox/jbohn/daytrader-bp/modules/beans/pom.xml Tue Sep 22 19:22:12 2009
@@ -158,7 +158,7 @@
                 <artifactId>maven-bundle-plugin</artifactId>
                 <configuration>
                     <instructions>
-                        <Export-Package>org.apache.geronimo.samples.daytrader.beans*;version=1.0.0</Export-Package>
+                        <Export-Package>org.apache.geronimo.samples.daytrader.beans;version=1.0.0</Export-Package>
                     </instructions>
                 </configuration>
             </plugin>

Modified: geronimo/sandbox/jbohn/daytrader-bp/modules/core/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/jbohn/daytrader-bp/modules/core/pom.xml?rev=817781&r1=817780&r2=817781&view=diff
==============================================================================
--- geronimo/sandbox/jbohn/daytrader-bp/modules/core/pom.xml (original)
+++ geronimo/sandbox/jbohn/daytrader-bp/modules/core/pom.xml Tue Sep 22 19:22:12 2009
@@ -196,8 +196,8 @@
                 <configuration>
                     <instructions>
                         <Export-Package>
-                            org.apache.geronimo.samples.daytrader.core*;version=1.0.0,
-                            org.apache.geronimo.samples.daytrader.core.direct*;version=1.0.0
+                            org.apache.geronimo.samples.daytrader.core;version=1.0.0,
+                            org.apache.geronimo.samples.daytrader.core.direct;version=1.0.0
                         </Export-Package>
                         <Import-Package>
                             org.apache.geronimo.samples.daytrader.beans;version=1.0,

Modified: geronimo/sandbox/jbohn/daytrader-bp/modules/util/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/jbohn/daytrader-bp/modules/util/pom.xml?rev=817781&r1=817780&r2=817781&view=diff
==============================================================================
--- geronimo/sandbox/jbohn/daytrader-bp/modules/util/pom.xml (original)
+++ geronimo/sandbox/jbohn/daytrader-bp/modules/util/pom.xml Tue Sep 22 19:22:12 2009
@@ -70,7 +70,7 @@
                         <Embed-Directory>lib</Embed-Directory>
                         <Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
                         <Embed-Transitive>true</Embed-Transitive>
-                        <Export-Package>org.apache.geronimo.samples.daytrader.util*;version=1.0.0</Export-Package>
+                        <Export-Package>org.apache.geronimo.samples.daytrader.util;version=1.0.0</Export-Package>
                         <Import-Package>
                             org.apache.geronimo.samples.daytrader.util;version=1.0,
                             org.apache.commons.logging;resolution:=optional,

Modified: geronimo/sandbox/jbohn/daytrader-bp/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/TradeAppServlet.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/jbohn/daytrader-bp/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/TradeAppServlet.java?rev=817781&r1=817780&r2=817781&view=diff
==============================================================================
--- geronimo/sandbox/jbohn/daytrader-bp/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/TradeAppServlet.java
(original)
+++ geronimo/sandbox/jbohn/daytrader-bp/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/TradeAppServlet.java
Tue Sep 22 19:22:12 2009
@@ -19,7 +19,6 @@
 import javax.servlet.*;
 import javax.servlet.http.*;
 
-import org.apache.geronimo.samples.daytrader.core.direct.*;
 import org.apache.geronimo.samples.daytrader.util.*;
 
 import java.io.IOException;

Modified: geronimo/sandbox/jbohn/daytrader-bp/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/TradeBuildDB.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/jbohn/daytrader-bp/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/TradeBuildDB.java?rev=817781&r1=817780&r2=817781&view=diff
==============================================================================
--- geronimo/sandbox/jbohn/daytrader-bp/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/TradeBuildDB.java
(original)
+++ geronimo/sandbox/jbohn/daytrader-bp/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/TradeBuildDB.java
Tue Sep 22 19:22:12 2009
@@ -25,7 +25,6 @@
 
 import org.apache.geronimo.samples.daytrader.core.TradeServices;
 import org.apache.geronimo.samples.daytrader.core.TradeDBServices;
-import org.apache.geronimo.samples.daytrader.core.direct.*;
 import org.apache.geronimo.samples.daytrader.beans.*;
 import org.apache.geronimo.samples.daytrader.util.*;
 import org.apache.geronimo.samples.daytrader.web.util.*;

Modified: geronimo/sandbox/jbohn/daytrader-bp/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/TradeServletAction.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/jbohn/daytrader-bp/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/TradeServletAction.java?rev=817781&r1=817780&r2=817781&view=diff
==============================================================================
--- geronimo/sandbox/jbohn/daytrader-bp/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/TradeServletAction.java
(original)
+++ geronimo/sandbox/jbohn/daytrader-bp/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/TradeServletAction.java
Tue Sep 22 19:22:12 2009
@@ -23,7 +23,6 @@
 import javax.servlet.http.*;
 
 import org.apache.geronimo.samples.daytrader.core.TradeServices;
-import org.apache.geronimo.samples.daytrader.core.direct.*;
 import org.apache.geronimo.samples.daytrader.beans.*;
 import org.apache.geronimo.samples.daytrader.util.*;
 import org.apache.geronimo.samples.daytrader.web.util.*;
@@ -41,7 +40,7 @@
  * getQuote, etc. TradeServletAction manages a web interface to Trade handling
  * HttpRequests/HttpResponse objects and forwarding results to the appropriate
  * JSP page for the web interface. TradeServletAction invokes
- * {@link TradeJDBCDirect} methods to actually perform each
+ * {@link TradeServices} methods to actually perform each
  * trading operation.
  * 
  */

Modified: geronimo/sandbox/jbohn/daytrader-bp/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/PingJDBCWrite.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/jbohn/daytrader-bp/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/PingJDBCWrite.java?rev=817781&r1=817780&r2=817781&view=diff
==============================================================================
--- geronimo/sandbox/jbohn/daytrader-bp/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/PingJDBCWrite.java
(original)
+++ geronimo/sandbox/jbohn/daytrader-bp/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/PingJDBCWrite.java
Tue Sep 22 19:22:12 2009
@@ -21,9 +21,10 @@
 import javax.servlet.*;
 import javax.servlet.http.*;
 
-import org.apache.geronimo.samples.daytrader.core.direct.*;
+import org.apache.geronimo.samples.daytrader.core.TradeServices;
 import org.apache.geronimo.samples.daytrader.beans.*;
 import org.apache.geronimo.samples.daytrader.util.*;
+import org.apache.geronimo.samples.daytrader.web.util.ServletUtilities;
 
 /**
  * 
@@ -60,14 +61,14 @@
 		symbol = TradeConfig.rndSymbol();
 		newPrice = TradeConfig.getRandomPriceChangeFactor();
 
-		//TradeJDBC makes use of prepared statements so I am going to reuse the existing code.
-		TradeJDBCDirect trade = new TradeJDBCDirect(); 
+		//TradeJDBCDirect via TradeServices makes use of prepared statements so I am going to reuse
the existing code.
+                TradeServices tradeServices = ServletUtilities.getTradeServices();
 
 		//update the price of our symbol
 		QuoteDataBean quoteData = null;
 		int iter = TradeConfig.getPrimIterations();
 		for (int ii = 0; ii < iter; ii++) {
-			quoteData = trade.updateQuotePriceVolumeInt(symbol, newPrice, 100.0, false);
+			quoteData = tradeServices.updateQuotePriceVolume(symbol, newPrice, 100.0);
 		}
 
 		//write the output
@@ -94,7 +95,7 @@
  **/
 public String getServletInfo()
 {
-	return "Basic JDBC Write using a prepared statment makes use of TradeJDBC code.";
+	return "Basic JDBC Write using a prepared statment makes use of TradeJDBCDirect code.";
 }            
 /**
 * called when the class is loaded to initialize the servlet



Mime
View raw message