geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jb...@apache.org
Subject svn commit: r820801 - in /geronimo/sandbox/jbohn/daytrader-bp/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims: PingJDBCRead.java PingJDBCWrite.java
Date Thu, 01 Oct 2009 21:25:21 GMT
Author: jbohn
Date: Thu Oct  1 21:25:20 2009
New Revision: 820801

URL: http://svn.apache.org/viewvc?rev=820801&view=rev
Log:
fix jdbc primitives to specifically use the jdbc mode

Modified:
    geronimo/sandbox/jbohn/daytrader-bp/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/PingJDBCRead.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/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/PingJDBCRead.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/jbohn/daytrader-bp/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/PingJDBCRead.java?rev=820801&r1=820800&r2=820801&view=diff
==============================================================================
--- geronimo/sandbox/jbohn/daytrader-bp/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/PingJDBCRead.java
(original)
+++ geronimo/sandbox/jbohn/daytrader-bp/modules/web/src/main/java/org/apache/geronimo/samples/daytrader/web/prims/PingJDBCRead.java
Thu Oct  1 21:25:20 2009
@@ -66,7 +66,7 @@
 		try
 			{
 			//TradeJDBCDirect (via TradeServices) uses prepared statements so I am going to make use
of it's code.
-                        TradeServices tradeServices = TradeServiceUtilities.getTradeServices();
+                        TradeServices tradeServices = TradeServiceUtilities.getTradeServices("(mode=jdbc)");
 			symbol = TradeConfig.rndSymbol();
 			
 			QuoteDataBean quoteData = null;

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=820801&r1=820800&r2=820801&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
Thu Oct  1 21:25:20 2009
@@ -62,7 +62,7 @@
 		newPrice = TradeConfig.getRandomPriceChangeFactor();
 
 		//TradeJDBCDirect via TradeServices makes use of prepared statements so I am going to reuse
the existing code.
-                TradeServices tradeServices = TradeServiceUtilities.getTradeServices();
+                TradeServices tradeServices = TradeServiceUtilities.getTradeServices("(mode=jdbc)");
 
 		//update the price of our symbol
 		QuoteDataBean quoteData = null;



Mime
View raw message