You are viewing a plain text version of this content. The canonical link for it is here.
Posted to stonehenge-commits@incubator.apache.org by be...@apache.org on 2009/09/05 16:41:19 UTC

svn commit: r811675 [1/9] - in /incubator/stonehenge/trunk: ./ stocktrader/metro/ stocktrader/metro/business_service/ stocktrader/metro/business_service/etc/ stocktrader/metro/business_service/src/ stocktrader/metro/business_service/src/org/ stocktrade...

Author: bendewey
Date: Sat Sep  5 16:41:14 2009
New Revision: 811675

URL: http://svn.apache.org/viewvc?rev=811675&view=rev
Log:
Moved Metro from contrib to trunk.

STONEHENGE-69, STONEHENGE-90, STONEHENGE093

Added:
    incubator/stonehenge/trunk/stocktrader/metro/
    incubator/stonehenge/trunk/stocktrader/metro/README.txt
    incubator/stonehenge/trunk/stocktrader/metro/build.xml
    incubator/stonehenge/trunk/stocktrader/metro/business_service/
    incubator/stonehenge/trunk/stocktrader/metro/business_service/build.xml
    incubator/stonehenge/trunk/stocktrader/metro/business_service/etc/
    incubator/stonehenge/trunk/stocktrader/metro/business_service/etc/client-keystore.jks   (with props)
    incubator/stonehenge/trunk/stocktrader/metro/business_service/etc/client-truststore.jks   (with props)
    incubator/stonehenge/trunk/stocktrader/metro/business_service/etc/sun-jaxws.xml
    incubator/stonehenge/trunk/stocktrader/metro/business_service/etc/web.xml
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/CustomAccountBean.java
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/CustomAccountProfileBean.java
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/CustomHoldingBean.java
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/CustomMarketSummaryBean.java
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/CustomOrderBean.java
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/CustomQuoteBean.java
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/dal/
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/dal/CustomerDAO.java
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/dal/DAOException.java
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/dal/DAOFactory.java
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/dal/MarketSummaryDAO.java
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/dal/OrderDAO.java
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/mssql/
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/mssql/AbstractMSSQLDAO.java
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/mssql/MSSQLCustomerDAO.java
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/mssql/MSSQLDAOFactory.java
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/mssql/MSSQLMarketSummaryDAO.java
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/mssql/MSSQLOrderDAO.java
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/mysql/
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/mysql/AbstractMySQLDAO.java
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/mysql/MySQLCustomerDAO.java
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/mysql/MySQLDAOFactory.java
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/mysql/MySQLMarketSummaryDAO.java
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/mysql/MySQLOrderDAO.java
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/services/
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/services/TradeConfigServiceClient.java
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/services/TradeOrderConfig.java
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/services/TradeOrderServiceClient.java
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/services/TradeServiceImpl.java
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/services/TraderServiceManager.java
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/util/
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/util/StockTraderSQLUtil.java
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/util/StockTraderUtility.java
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/wsdl0.wsdl
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/wsit-client.xml
    incubator/stonehenge/trunk/stocktrader/metro/config_service/
    incubator/stonehenge/trunk/stocktrader/metro/config_service/build.xml
    incubator/stonehenge/trunk/stocktrader/metro/config_service/etc/
    incubator/stonehenge/trunk/stocktrader/metro/config_service/etc/sun-jaxws.xml
    incubator/stonehenge/trunk/stocktrader/metro/config_service/etc/web.xml
    incubator/stonehenge/trunk/stocktrader/metro/config_service/src/
    incubator/stonehenge/trunk/stocktrader/metro/config_service/src/org/
    incubator/stonehenge/trunk/stocktrader/metro/config_service/src/org/apache/
    incubator/stonehenge/trunk/stocktrader/metro/config_service/src/org/apache/stonehenge/
    incubator/stonehenge/trunk/stocktrader/metro/config_service/src/org/apache/stonehenge/stocktrader/
    incubator/stonehenge/trunk/stocktrader/metro/config_service/src/org/apache/stonehenge/stocktrader/dal/
    incubator/stonehenge/trunk/stocktrader/metro/config_service/src/org/apache/stonehenge/stocktrader/dal/ConfigServiceDAO.java
    incubator/stonehenge/trunk/stocktrader/metro/config_service/src/org/apache/stonehenge/stocktrader/dal/ConfigServiceDAOImpl.java
    incubator/stonehenge/trunk/stocktrader/metro/config_service/src/org/apache/stonehenge/stocktrader/dal/ConnectionProvider.java
    incubator/stonehenge/trunk/stocktrader/metro/config_service/src/org/apache/stonehenge/stocktrader/dal/DAOFactory.java
    incubator/stonehenge/trunk/stocktrader/metro/config_service/src/org/apache/stonehenge/stocktrader/mssql/
    incubator/stonehenge/trunk/stocktrader/metro/config_service/src/org/apache/stonehenge/stocktrader/mssql/MSSQLConnectionProvider.java
    incubator/stonehenge/trunk/stocktrader/metro/config_service/src/org/apache/stonehenge/stocktrader/mysql/
    incubator/stonehenge/trunk/stocktrader/metro/config_service/src/org/apache/stonehenge/stocktrader/mysql/MySQLConnectionProvider.java
    incubator/stonehenge/trunk/stocktrader/metro/config_service/src/org/apache/stonehenge/stocktrader/services/
    incubator/stonehenge/trunk/stocktrader/metro/config_service/src/org/apache/stonehenge/stocktrader/services/ConfigServiceServiceImpl.java
    incubator/stonehenge/trunk/stocktrader/metro/documents/
    incubator/stonehenge/trunk/stocktrader/metro/documents/manual.doc   (with props)
    incubator/stonehenge/trunk/stocktrader/metro/etc/
    incubator/stonehenge/trunk/stocktrader/metro/etc/App.config
    incubator/stonehenge/trunk/stocktrader/metro/etc/Web.config
    incubator/stonehenge/trunk/stocktrader/metro/etc/as.xml
    incubator/stonehenge/trunk/stocktrader/metro/etc/build.properties
    incubator/stonehenge/trunk/stocktrader/metro/etc/business_service/
    incubator/stonehenge/trunk/stocktrader/metro/etc/business_service/TradeServiceWsas.wsdl
    incubator/stonehenge/trunk/stocktrader/metro/etc/business_service/custom-jaxbbean.xml
    incubator/stonehenge/trunk/stocktrader/metro/etc/business_service/custom-sei.xml
    incubator/stonehenge/trunk/stocktrader/metro/etc/business_service/wsdl0.wsdl
    incubator/stonehenge/trunk/stocktrader/metro/etc/business_service/xsd0.xsd
    incubator/stonehenge/trunk/stocktrader/metro/etc/business_service/xsd1.xsd
    incubator/stonehenge/trunk/stocktrader/metro/etc/config_service/
    incubator/stonehenge/trunk/stocktrader/metro/etc/config_service/ConfigService.wsdl
    incubator/stonehenge/trunk/stocktrader/metro/etc/config_service/custom-jaxbbean.xml
    incubator/stonehenge/trunk/stocktrader/metro/etc/config_service/custom-sei.xml
    incubator/stonehenge/trunk/stocktrader/metro/etc/config_service/wsdl0.wsdl
    incubator/stonehenge/trunk/stocktrader/metro/etc/config_service/xsd0.xsd
    incubator/stonehenge/trunk/stocktrader/metro/etc/config_service/xsd1.xsd
    incubator/stonehenge/trunk/stocktrader/metro/etc/config_service/xsd2.xsd
    incubator/stonehenge/trunk/stocktrader/metro/etc/order_processor/
    incubator/stonehenge/trunk/stocktrader/metro/etc/order_processor/OrderProcessor.wsdl
    incubator/stonehenge/trunk/stocktrader/metro/etc/order_processor/custom-jaxbbean.xml
    incubator/stonehenge/trunk/stocktrader/metro/etc/order_processor/custom-sei.xml
    incubator/stonehenge/trunk/stocktrader/metro/etc/order_processor/wsdl0.wsdl
    incubator/stonehenge/trunk/stocktrader/metro/etc/order_processor/xsd0.xsd
    incubator/stonehenge/trunk/stocktrader/metro/etc/order_processor/xsd1.xsd
    incubator/stonehenge/trunk/stocktrader/metro/etc/order_processor/xsd2.xsd
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/build.xml
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/etc/
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/etc/server-keystore.jks   (with props)
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/etc/server-truststore.jks   (with props)
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/etc/sun-jaxws.xml
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/etc/web.xml
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/src/
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/src/org/
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/src/org/apache/
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/src/org/apache/stonehenge/
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/src/org/apache/stonehenge/stocktrader/
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/src/org/apache/stonehenge/stocktrader/CustomHoldingBean.java
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/src/org/apache/stonehenge/stocktrader/CustomOrderBean.java
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/src/org/apache/stonehenge/stocktrader/CustomQuoteBean.java
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/src/org/apache/stonehenge/stocktrader/dal/
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/src/org/apache/stonehenge/stocktrader/dal/CustomerDAO.java
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/src/org/apache/stonehenge/stocktrader/dal/DAOException.java
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/src/org/apache/stonehenge/stocktrader/dal/DAOFactory.java
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/src/org/apache/stonehenge/stocktrader/dal/MarketSummaryDAO.java
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/src/org/apache/stonehenge/stocktrader/dal/OrderDAO.java
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/src/org/apache/stonehenge/stocktrader/mssql/
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/src/org/apache/stonehenge/stocktrader/mssql/AbstractMSSQLDAO.java
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/src/org/apache/stonehenge/stocktrader/mssql/MSSQLCustomerDAO.java
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/src/org/apache/stonehenge/stocktrader/mssql/MSSQLDAOFactory.java
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/src/org/apache/stonehenge/stocktrader/mssql/MSSQLMarketSummaryDAO.java
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/src/org/apache/stonehenge/stocktrader/mssql/MSSQLOrderDAO.java
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/src/org/apache/stonehenge/stocktrader/mysql/
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/src/org/apache/stonehenge/stocktrader/mysql/AbstractMySQLDAO.java
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/src/org/apache/stonehenge/stocktrader/mysql/MySQLCustomerDAO.java
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/src/org/apache/stonehenge/stocktrader/mysql/MySQLDAOFactory.java
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/src/org/apache/stonehenge/stocktrader/mysql/MySQLMarketSummaryDAO.java
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/src/org/apache/stonehenge/stocktrader/mysql/MySQLOrderDAO.java
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/src/org/apache/stonehenge/stocktrader/service/
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/src/org/apache/stonehenge/stocktrader/service/OrderProcessManager.java
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/src/org/apache/stonehenge/stocktrader/service/OrderProcessorImpl.java
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/src/org/apache/stonehenge/stocktrader/util/
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/src/org/apache/stonehenge/stocktrader/util/OrderProcessorUtility.java
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/src/org/apache/stonehenge/stocktrader/util/StockTraderUtility.java
    incubator/stonehenge/trunk/stocktrader/metro/resources/
    incubator/stonehenge/trunk/stocktrader/metro/resources/conf/
    incubator/stonehenge/trunk/stocktrader/metro/resources/conf/TradeServiceConfig.properties
    incubator/stonehenge/trunk/stocktrader/metro/resources/conf/db.properties
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/build.xml
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/src/
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/src/org/
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/src/org/apache/
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/src/org/apache/stonehenge/
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/src/org/apache/stonehenge/stocktrader/
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/src/org/apache/stonehenge/stocktrader/bean/
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/src/org/apache/stonehenge/stocktrader/bean/AccountBean.java
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/src/org/apache/stonehenge/stocktrader/bean/AccountSummary.java
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/src/org/apache/stonehenge/stocktrader/bean/ConfigServiceBean.java
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/src/org/apache/stonehenge/stocktrader/bean/HoldingInfo.java
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/src/org/apache/stonehenge/stocktrader/bean/LoginBean.java
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/src/org/apache/stonehenge/stocktrader/bean/PortfolioBean.java
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/src/org/apache/stonehenge/stocktrader/bean/QuoteBean.java
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/src/org/apache/stonehenge/stocktrader/bean/RegisterBean.java
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/src/org/apache/stonehenge/stocktrader/bean/TradeBean.java
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/src/org/apache/stonehenge/stocktrader/bean/UserBean.java
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/src/org/apache/stonehenge/stocktrader/filter/
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/src/org/apache/stonehenge/stocktrader/filter/LoginFilter.java
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/src/org/apache/stonehenge/stocktrader/service/
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/src/org/apache/stonehenge/stocktrader/service/BusinessServiceClient.java
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/src/org/apache/stonehenge/stocktrader/service/BusinessServiceConfig.java
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/src/org/apache/stonehenge/stocktrader/service/ConfigServiceClient.java
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/src/org/apache/stonehenge/stocktrader/service/CookieManager.java
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/WEB-INF/
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/WEB-INF/facelets/
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/WEB-INF/facelets/tags/
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/WEB-INF/facelets/tags/currency.xhtml
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/WEB-INF/facelets/tags/price.xhtml
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/WEB-INF/facelets/tags/stonehenge.taglib.xml
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/WEB-INF/faces-config.xml
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/WEB-INF/web.xml
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/account.xhtml
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/alertInfo.jsf
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/configService.xhtml
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/confirmation.xhtml
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/css/
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/css/style.css
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/getQuote.jsf
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/glossary.xhtml
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/home.xhtml
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/bg.gif   (with props)
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/button-bg.gif   (with props)
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/favicon.ico   (with props)
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/footer-bg.gif   (with props)
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/green-arrow.gif   (with props)
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/header-bg.gif   (with props)
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/header-link-bg-hover.gif   (with props)
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/header-link-bg.gif   (with props)
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/header-links-bg.gif   (with props)
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/logo.png   (with props)
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/middle-bg.gif   (with props)
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/powered-by-logo.gif   (with props)
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/red-arrow.gif   (with props)
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/spinner.gif   (with props)
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/login.xhtml
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/newOrder.xhtml
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/portfolio.xhtml
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/quotes.xhtml
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/register.xhtml
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/registerSuccess.xhtml
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/template.xhtml
    incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/welcome.xhtml
Modified:
    incubator/stonehenge/trunk/build.bat

Modified: incubator/stonehenge/trunk/build.bat
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/build.bat?rev=811675&r1=811674&r2=811675&view=diff
==============================================================================
--- incubator/stonehenge/trunk/build.bat (original)
+++ incubator/stonehenge/trunk/build.bat Sat Sep  5 16:41:14 2009
@@ -27,14 +27,20 @@
 @call mvn clean install
 @cd ..\php
 @call build.bat
+@mkdir %BIN_DIR%\metro_stocktrader
+@cd ..\metro
+@call ant deploy -Ddeploy.dir=..\..\..\%BIN_DIR%\metro_stocktrader
 @echo off
 @cd ..
 
 rem =====================================
 rem binary pack
 rem =====================================
+rem == PHP
 @xcopy /E /Q /Y /I php\php_stocktrader ..\%BIN_DIR%\php_stocktrader\
+rem == WSAS
 @xcopy /E /Q /Y /I wsas\target\wsas_stocktrader ..\%BIN_DIR%\wsas_stocktrader\
+rem == DOTNET
 @cd ..\%BIN_DIR%
 @mkdir dotnet_stocktrader
 @cd dotnet_stocktrader

Added: incubator/stonehenge/trunk/stocktrader/metro/README.txt
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/README.txt?rev=811675&view=auto
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/metro/README.txt (added)
+++ incubator/stonehenge/trunk/stocktrader/metro/README.txt Sat Sep  5 16:41:14 2009
@@ -0,0 +1,72 @@
+NOTICE
+---------
+Before deploying Metro version of BS, OPS and trader client, you should create a lib folder, download jar files as below, and put in the specified folders.
+
+Structure of Stocktrader Directories
+-------------------------------------
+STOCKTRADER_HOME
+|__business_service
+|__order_processor
+|__trader_client
+|__etc
+|__lib
+	|__metro
+	|__facelets
+	|__javaee
+	|__jsf
+	|__mysql
+	|__mssql
+	|__commons
+	|__log4j
+	|__ant
+	
+
+Addresses to download the jar files
+--------------------------------------
+
+metro :
+	webservices-api.jar
+    webservices-extra.jar
+    webservices-extra-api.jar
+    webservices-rt.jar
+    webservices-tools.jar
+	
+	Get from Metro
+	Metro 2.0 nightly build on July 6
+	From: https://metro.dev.java.net/servlets/ProjectDocumentList?expandFolder=7638&folderID=10314
+
+facelets :
+    jsf-facelets.jar
+	From: https://facelets.dev.java.net/files/documents/3448/84208/facelets-1.1.14.zip
+	
+javaee :
+    javaee.jar
+	Get from glassfish/lib
+	
+jsf :
+	jsf-api.jar
+	jsf-impl.jar
+	From: https://javaserverfaces.dev.java.net/files/documents/1866/44998/jsf-1_2_03.zip
+
+	jstl.jar
+	From: http://apache.freelamp.com/jakarta/taglibs/standard/binaries/jakarta-taglibs-standard-1.1.2.zip
+
+mssql :
+	jtds-1.2.2.jar
+	From: http://jaist.dl.sourceforge.net/sourceforge/jtds/jtds-1.2.2-dist.zip
+ 
+commons :
+	commons-logging-1.1.1.jar
+	From: http://labs.xiaonei.com/apache-mirror/commons/logging/binaries/commons-logging-1.1.1-bin.zip
+  
+ant :
+	ant-contrib
+	From: http://jaist.dl.sourceforge.net/sourceforge/ant-contrib/ant-contrib-1.0b3-bin.zip
+
+log4j :
+	log4j-1.2.15.jar
+	From: http://apache.etoak.com/logging/log4j/1.2.15/apache-log4j-1.2.15.zip
+
+mysql :
+	mysql-connector-java-5.1.7-bin.jar
+	From: http://dev.mysql.com/downloads/connector/j/5.1.html
\ No newline at end of file

Added: incubator/stonehenge/trunk/stocktrader/metro/build.xml
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/build.xml?rev=811675&view=auto
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/metro/build.xml (added)
+++ incubator/stonehenge/trunk/stocktrader/metro/build.xml Sat Sep  5 16:41:14 2009
@@ -0,0 +1,29 @@
+<project basedir="." default="redeploy" name="">
+    <import file="etc/as.xml"/>
+
+    <target name="deploy">
+    		<ant dir="config_service" target="deploy" inheritAll="false" inheritRefs="false"/>
+        <ant dir="business_service" target="deploy" inheritAll="false" inheritRefs="false"/>
+        <ant dir="order_processor" target="deploy" inheritAll="false" inheritRefs="false"/>
+        <ant dir="trader_client" target="deploy" inheritAll="false" inheritRefs="false"/>
+    </target>
+
+    <target name="undeploy">
+    		<ant dir="config_service" target="undeploy" inheritAll="false" inheritRefs="false"/>
+        <ant dir="business_service" target="undeploy" inheritAll="false" inheritRefs="false"/>
+        <ant dir="order_processor" target="undeploy" inheritAll="false" inheritRefs="false"/>
+        <ant dir="trader_client" target="undeploy" inheritAll="false" inheritRefs="false"/>
+    </target>
+
+    <target name="redeploy">
+    		<ant dir="config_service" target="redeploy" inheritAll="false" inheritRefs="false"/>
+        <ant dir="business_service" target="redeploy" inheritAll="false" inheritRefs="false"/>
+        <ant dir="order_processor" target="redeploy" inheritAll="false" inheritRefs="false"/>
+        <ant dir="trader_client" target="redeploy" inheritAll="false" inheritRefs="false"/>
+    </target>
+    
+    <target name="zippatch">
+        <input message="Please Enter the name of the patch zip(exclude .zip suffix):" addproperty="zipfilename"/>
+        <zip destfile="../patches_for_stonehenge/${zipfilename}.zip" basedir="." excludes="**/*.svn, lib/**, **/build/**, **/*.ipr, **/*.iml, **/*.iws, .hg*, .hg/**" update="true"/>
+    </target>
+</project>
\ No newline at end of file

Added: incubator/stonehenge/trunk/stocktrader/metro/business_service/build.xml
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/business_service/build.xml?rev=811675&view=auto
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/metro/business_service/build.xml (added)
+++ incubator/stonehenge/trunk/stocktrader/metro/business_service/build.xml Sat Sep  5 16:41:14 2009
@@ -0,0 +1,122 @@
+<project basedir="." default="war" name="business_service">
+    <import file="../etc/as.xml"/>
+    
+    <property name="src.dir" value="${basedir}/src"/>
+    <property name="build.home" value="${basedir}/build"/>
+    <property name="build.classes.home" value="${build.home}/classes"/>
+    <property name="build.war.home" value="${build.home}/war"/>
+
+    <property name="war.name" value="${ant.project.name}.war"/>
+    <property name="war.file" value="${build.war.home}/${war.name}"/>
+    <property name="lib.home" value="${basedir}/../lib"/>
+    <property name="lib.metro.home" value="${lib.home}/metro"/>
+    <property name="op.file" value="${build.classes.home}/TradeServiceConfig.properties"/>
+    <property name="client.keystore" value="${basedir}/etc/client-keystore.jks"/>
+    <property name="client.truststore" value="${basedir}/etc/client-truststore.jks"/>
+
+    <path id="metro.classpath">
+        <pathelement location="${java.home}/../lib/tools.jar"/>
+        <fileset dir="${lib.metro.home}">
+            <include name="*.jar"/>
+        </fileset>
+    </path>
+
+    <path id="all.classpath">
+        <fileset dir="${lib.home}">
+            <include name="**/*.jar"/>
+        </fileset>
+    </path>
+
+    <taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport">
+        <classpath refid="metro.classpath"/>
+    </taskdef>
+
+    <target name="clean">
+        <delete dir="${build.home}" includeEmptyDirs="true"/>
+    </target>
+
+    <target name="setup" depends="clean">
+        <mkdir dir="${build.home}"/>
+        <mkdir dir="${build.classes.home}"/>
+        <mkdir dir="${build.war.home}"/>
+    </target>
+
+    <target name="generate-order-processor-client">
+        <wsimport
+                debug="${debug}"
+                verbose="${verbose}"
+                keep="${keep}"
+                destdir="${build.classes.home}"
+                wsdl="${order.processor.wsdl}"
+                extension="true">
+            <binding dir="${order.processor.binding.dir}" includes="${order.processor.binding}"/>
+            <xjcarg value="-extension"/>
+        </wsimport>
+    </target>
+
+    <target name="generate-cs-client">
+        <wsimport
+                debug="${debug}"
+                verbose="${verbose}"
+                keep="${keep}"
+                destdir="${build.classes.home}"
+                wsdl="${config.service.wsdl}"
+                extension="true">
+            <binding dir="${config.service.binding.dir}" includes="${config.service.binding}"/>
+            <xjcarg value="-extension"/>
+        </wsimport>
+    </target>
+
+    <target name="build" depends="setup, generate-order-processor-client, generate-cs-client">
+        <wsimport
+                debug="${debug}"
+                verbose="${verbose}"
+                keep="${keep}"
+                destdir="${build.classes.home}"
+                wsdl="${business.service.wsdl}">
+            <binding dir="${business.service.binding.dir}" includes="${business.service.binding}"/>
+            <xjcarg value="-extension"/>
+        </wsimport>
+        <copy todir="${build.classes.home}">
+            <fileset dir="../resources/conf" includes="*.properties"/>
+        </copy>
+        <copy file="${src.dir}/wsdl0.wsdl" todir="${build.classes.home}"/>
+        <copy file="${src.dir}/wsit-client.xml" todir="${build.classes.home}"/>
+        <javac
+                fork="true"
+                srcdir="${src.dir}"
+                destdir="${build.classes.home}">
+            <classpath refid="all.classpath"/>
+        </javac>
+    </target>
+
+    <target name="war" depends="build">
+        <war warfile="${war.file}" webxml="etc/web.xml">
+            <webinf dir="${basedir}/etc" includes="sun-jaxws.xml"/>
+            <zipfileset
+                    dir="${business.service.binding.dir}"
+                    includes="*.wsdl, *.xsd"
+                    prefix="WEB-INF/wsdl"/>
+            <classes dir="${build.classes.home}"/>
+            <lib dir="${lib.home}/commons"/>
+            <lib dir="${lib.home}/log4j"/>
+            <lib dir="${lib.home}/mssql"/>
+            <lib dir="${lib.home}/mysql"/>
+        </war>
+    </target>
+
+    <target name="deploy-keystore">
+        <copy file="${client.keystore}" todir="${keystore.dir}"/>
+        <copy file="${client.truststore}" todir="${keystore.dir}"/>
+    </target>
+
+    <target name="deploy" depends="war, deploy-keystore">
+        <copy file="${war.file}" todir="${deploy.dir}"/>
+    </target>
+
+    <target name="undeploy">
+        <delete file="${deploy.dir}/${war.name}"/>
+    </target>
+
+    <target name="redeploy" depends="undeploy, deploy"/>
+</project>

Added: incubator/stonehenge/trunk/stocktrader/metro/business_service/etc/client-keystore.jks
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/business_service/etc/client-keystore.jks?rev=811675&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/stonehenge/trunk/stocktrader/metro/business_service/etc/client-keystore.jks
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/stonehenge/trunk/stocktrader/metro/business_service/etc/client-truststore.jks
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/business_service/etc/client-truststore.jks?rev=811675&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/stonehenge/trunk/stocktrader/metro/business_service/etc/client-truststore.jks
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/stonehenge/trunk/stocktrader/metro/business_service/etc/sun-jaxws.xml
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/business_service/etc/sun-jaxws.xml?rev=811675&view=auto
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/metro/business_service/etc/sun-jaxws.xml (added)
+++ incubator/stonehenge/trunk/stocktrader/metro/business_service/etc/sun-jaxws.xml Sat Sep  5 16:41:14 2009
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
+
+ Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
+
+ The contents of this file are subject to the terms of either the GNU
+ General Public License Version 2 only ("GPL") or the Common Development
+ and Distribution License("CDDL") (collectively, the "License").  You
+ may not use this file except in compliance with the License. You can obtain
+ a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
+ or glassfish/bootstrap/legal/LICENSE.txt.  See the License for the specific
+ language governing permissions and limitations under the License.
+
+ When distributing the software, include this License Header Notice in each
+ file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
+ Sun designates this particular file as subject to the "Classpath" exception
+ as provided by Sun in the GPL Version 2 section of the License file that
+ accompanied this code.  If applicable, add the following below the License
+ Header, with the fields enclosed by brackets [] replaced by your own
+ identifying information: "Portions Copyrighted [year]
+ [name of copyright owner]"
+
+ Contributor(s):
+
+ If you wish your version of this file to be governed by only the CDDL or
+ only the GPL Version 2, indicate your decision by adding "[Contributor]
+ elects to include this software in this distribution under the [CDDL or GPL
+ Version 2] license."  If you don't indicate a single choice of license, a
+ recipient has the option to distribute your version of this file under
+ either the CDDL, the GPL Version 2 or to extend the choice of license to
+ its licensees as provided above.  However, if you add GPL Version 2 code
+ and therefore, elected the GPL Version 2 license, then the option applies
+ only if the new code is made subject to such option by the copyright
+ holder.
+-->
+
+
+<endpoints xmlns="http://java.sun.com/xml/ns/jax-ws/ri/runtime" version="2.0">
+    <endpoint 
+        name="TradeServiceWsas"
+        interface="org.tempuri.ITradeServices"
+        implementation="org.apache.stonehenge.stocktrader.services.TradeServiceImpl"
+        wsdl="TradeServiceWsas.wsdl"
+        service="{http://tempuri.org/}TradeServiceWsas"
+        port="{http://tempuri.org/}BasicHttpBinding_ITradeServices"
+        url-pattern="/TradeServiceWsas"/>
+
+</endpoints>

Added: incubator/stonehenge/trunk/stocktrader/metro/business_service/etc/web.xml
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/business_service/etc/web.xml?rev=811675&view=auto
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/metro/business_service/etc/web.xml (added)
+++ incubator/stonehenge/trunk/stocktrader/metro/business_service/etc/web.xml Sat Sep  5 16:41:14 2009
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
+ 
+ Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
+ 
+ The contents of this file are subject to the terms of either the GNU
+ General Public License Version 2 only ("GPL") or the Common Development
+ and Distribution License("CDDL") (collectively, the "License").  You
+ may not use this file except in compliance with the License. You can obtain
+ a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
+ or glassfish/bootstrap/legal/LICENSE.txt.  See the License for the specific
+ language governing permissions and limitations under the License.
+ 
+ When distributing the software, include this License Header Notice in each
+ file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
+ Sun designates this particular file as subject to the "Classpath" exception
+ as provided by Sun in the GPL Version 2 section of the License file that
+ accompanied this code.  If applicable, add the following below the License
+ Header, with the fields enclosed by brackets [] replaced by your own
+ identifying information: "Portions Copyrighted [year]
+ [name of copyright owner]"
+ 
+ Contributor(s):
+ 
+ If you wish your version of this file to be governed by only the CDDL or
+ only the GPL Version 2, indicate your decision by adding "[Contributor]
+ elects to include this software in this distribution under the [CDDL or GPL
+ Version 2] license."  If you don't indicate a single choice of license, a
+ recipient has the option to distribute your version of this file under
+ either the CDDL, the GPL Version 2 or to extend the choice of license to
+ its licensees as provided above.  However, if you add GPL Version 2 code
+ and therefore, elected the GPL Version 2 license, then the option applies
+ only if the new code is made subject to such option by the copyright
+ holder.
+-->
+
+<web-app version="2.4" mlns="http://java.sun.com/xml/ns/j2ee">
+  <display-name>wsit-jaxws-fromwsdl</display-name>
+  <description>wsit-jaxws-fromwsdl</description>
+  <listener>
+    <listener-class>com.sun.xml.ws.transport.http.servlet.WSServletContextListener</listener-class>
+  </listener>
+  <servlet>
+    <servlet-name>stocktrader</servlet-name>
+    <display-name>stocktrader</display-name>
+    <description>stocktrader endpoint</description>
+    <servlet-class>com.sun.xml.ws.transport.http.servlet.WSServlet</servlet-class>
+    <load-on-startup>1</load-on-startup>
+  </servlet>
+  <servlet-mapping>
+    <servlet-name>stocktrader</servlet-name>
+    <url-pattern>/TradeServiceWsas</url-pattern>
+  </servlet-mapping>
+  <session-config>
+    <session-timeout>60</session-timeout>
+  </session-config>
+</web-app>

Added: incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/CustomAccountBean.java
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/CustomAccountBean.java?rev=811675&view=auto
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/CustomAccountBean.java (added)
+++ incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/CustomAccountBean.java Sat Sep  5 16:41:14 2009
@@ -0,0 +1,69 @@
+/*
+ * 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.
+ */
+
+package org.apache.stonehenge.stocktrader;
+
+import java.math.BigDecimal;
+import java.util.Calendar;
+
+import com.ibm.websphere.samples.trade.AccountDataBean;
+
+public class CustomAccountBean extends AccountDataBean {
+
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = -6368651996080304426L;
+
+	protected String userID;
+
+	public CustomAccountBean() {
+	}
+
+	public CustomAccountBean(AccountDataBean accountDataBean) {
+		setAccountID(accountDataBean.getAccountID());
+		setBalance(accountDataBean.getBalance());
+		setCreationDate(accountDataBean.getCreationDate());
+		setLastLogin(accountDataBean.getLastLogin());
+		setLoginCount(accountDataBean.getLoginCount());
+		setLogoutCount(accountDataBean.getLogoutCount());
+		setOpenBalance(accountDataBean.getOpenBalance());
+	}
+
+	public CustomAccountBean(int accountId, String profileId,
+			Calendar creationDate, BigDecimal openBalance, int logoutCount,
+			BigDecimal balance, Calendar lastLogIn, int loginCount) {
+		setAccountID(accountId);
+		setProfileID(profileId);
+		setCreationDate(creationDate);
+		setOpenBalance(openBalance);
+		setLogoutCount(logoutCount);
+		setBalance(balance);
+		setLastLogin(lastLogIn);
+		setLoginCount(loginCount);
+		setLogoutCount(logoutCount);
+	}
+
+	public String getUserID() {
+		return this.userID;
+	}
+
+	public void setUserID(String userID) {
+		this.userID = userID;
+	}
+
+}

Added: incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/CustomAccountProfileBean.java
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/CustomAccountProfileBean.java?rev=811675&view=auto
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/CustomAccountProfileBean.java (added)
+++ incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/CustomAccountProfileBean.java Sat Sep  5 16:41:14 2009
@@ -0,0 +1,52 @@
+/*
+ * 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.
+ */
+
+package org.apache.stonehenge.stocktrader;
+
+import com.ibm.websphere.samples.trade.AccountProfileDataBean;
+
+public class CustomAccountProfileBean extends AccountProfileDataBean {
+
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = 1485167358537563576L;
+
+	public CustomAccountProfileBean() {
+	}
+
+	public CustomAccountProfileBean(
+			AccountProfileDataBean accountProfileDataBean) {
+		setAddress(accountProfileDataBean.getAddress());
+		setCreditCard(accountProfileDataBean.getCreditCard());
+		setEmail(accountProfileDataBean.getEmail());
+		setFullName(accountProfileDataBean.getFullName());
+		setPassword(accountProfileDataBean.getPassword());
+		setUserID(accountProfileDataBean.getUserID());
+	}
+
+	public CustomAccountProfileBean(String userId, String password,
+			String fullName, String address, String email, String creditcard) {
+		setUserID(userId);
+		setPassword(password);
+		setFullName(fullName);
+		setAddress(address);
+		setEmail(email);
+		setCreditCard(creditcard);
+	}
+
+}

Added: incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/CustomHoldingBean.java
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/CustomHoldingBean.java?rev=811675&view=auto
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/CustomHoldingBean.java (added)
+++ incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/CustomHoldingBean.java Sat Sep  5 16:41:14 2009
@@ -0,0 +1,83 @@
+/*
+ * 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.
+ */
+
+package org.apache.stonehenge.stocktrader;
+
+import java.math.BigDecimal;
+import java.util.Calendar;
+
+import com.ibm.websphere.samples.trade.HoldingDataBean;
+
+/**
+ * This class is to be used as the data model for holding information.
+ */
+public class CustomHoldingBean extends HoldingDataBean {
+
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = 3294871357941879094L;
+	private int accountID;
+
+	public CustomHoldingBean() {
+	}
+
+	/**
+	 * Constructs a data model instance with holding information.
+	 * 
+	 * @param accountId
+	 *            the account ID of the buyer
+	 * @param holdingID
+	 *            the holding ID of the stock
+	 * @param quantity
+	 *            the quantity of the stock
+	 * @param purchasePrice
+	 *            the purchase price of the stock
+	 * @param purchaseDate
+	 *            the date of the purchase of the stock
+	 * @param quoteID
+	 *            the quote ID of the stock
+	 */
+	public CustomHoldingBean(int accountId, int holdingID, double quantity,
+			BigDecimal purchasePrice, Calendar purchaseDate, String quoteID) {
+		setAccountID(accountId);
+		setHoldingID(holdingID);
+		setQuantity(quantity);
+		setPurchasePrice(purchasePrice);
+		setPurchaseDate(purchaseDate);
+		setQuoteID(quoteID);
+	}
+
+	public CustomHoldingBean(int holdingID, double quantity,
+			BigDecimal purchasePrice, Calendar purchaseDate, String quoteID,
+			int accountID) {
+		setHoldingID(holdingID);
+		setAccountID(accountID);
+		setQuantity(quantity);
+		setPurchasePrice(purchasePrice);
+		setPurchaseDate(purchaseDate);
+		setQuoteID(quoteID);
+	}
+
+	public int getAccountID() {
+		return accountID;
+	}
+
+	public void setAccountID(int accountID) {
+		this.accountID = accountID;
+	}
+}

Added: incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/CustomMarketSummaryBean.java
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/CustomMarketSummaryBean.java?rev=811675&view=auto
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/CustomMarketSummaryBean.java (added)
+++ incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/CustomMarketSummaryBean.java Sat Sep  5 16:41:14 2009
@@ -0,0 +1,67 @@
+/*
+ * 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.
+ */
+
+package org.apache.stonehenge.stocktrader;
+
+import java.math.BigDecimal;
+import java.util.List;
+
+import com.ibm.websphere.samples.trade.ArrayOfQuoteDataBean;
+import com.ibm.websphere.samples.trade.MarketSummaryDataBeanWS;
+
+public class CustomMarketSummaryBean extends MarketSummaryDataBeanWS {
+
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = 6180349684421231291L;
+
+	public CustomMarketSummaryBean(BigDecimal tSIA, BigDecimal openTSIA,
+			double volume, List<CustomQuoteBean> topGainers,
+			List<CustomQuoteBean> topLosers) {
+		setTSIA(tSIA);
+		setOpenTSIA(openTSIA);
+		setVolume(volume);
+		setTopGainers(topGainers);
+		setTopLosers(topLosers);
+	}
+
+	private void setTopGainers(List<CustomQuoteBean> topGainers) {
+		ArrayOfQuoteDataBean arrayOfQuoteDataBean = new ArrayOfQuoteDataBean();
+        
+        // FIXED: used array for metro generated code
+        arrayOfQuoteDataBean.getQuoteDataBean().addAll(topGainers);
+        
+//        CustomQuoteBean[] qouteBeans = new CustomQuoteBean[topGainers.size()];
+//		qouteBeans = (CustomQuoteBean[]) topGainers.toArray(qouteBeans);
+//		arrayOfQuoteDataBean.setQuoteDataBean(qouteBeans);
+		setTopGainers(arrayOfQuoteDataBean);
+	}
+
+	private void setTopLosers(List<CustomQuoteBean> topLosers) {
+		ArrayOfQuoteDataBean arrayOfQouteDataBean = new ArrayOfQuoteDataBean();
+
+        // FIXED: used array for metro generated code
+        arrayOfQouteDataBean.getQuoteDataBean().addAll(topLosers);
+
+//		CustomQuoteBean[] qouteBeans = new CustomQuoteBean[topLosers.size()];
+//		qouteBeans = (CustomQuoteBean[]) topLosers.toArray(qouteBeans);
+//		arrayOfQouteDataBean.setQuoteDataBean(qouteBeans);
+		setTopLosers(arrayOfQouteDataBean);
+	}
+
+}

Added: incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/CustomOrderBean.java
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/CustomOrderBean.java?rev=811675&view=auto
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/CustomOrderBean.java (added)
+++ incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/CustomOrderBean.java Sat Sep  5 16:41:14 2009
@@ -0,0 +1,89 @@
+/*
+ * 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.
+ */
+
+package org.apache.stonehenge.stocktrader;
+
+import java.math.BigDecimal;
+import java.util.Calendar;
+
+import com.ibm.websphere.samples.trade.OrderDataBean;
+
+/**
+ * This class is to be used as the data model for order information.
+ */
+public class CustomOrderBean extends OrderDataBean {
+
+	private static final long serialVersionUID = 5294153874232419015L;
+
+	int accountId;
+	int holdingId;
+
+	public CustomOrderBean(OrderDataBean orderDataBean) {
+		setCompletionDate(orderDataBean.getCompletionDate());
+		setOpenDate(orderDataBean.getOpenDate());
+		setOrderFee(orderDataBean.getOrderFee());
+		setOrderID(orderDataBean.getOrderID());
+		setOrderStatus(orderDataBean.getOrderStatus());
+		setOrderType(orderDataBean.getOrderType());
+		setPrice(orderDataBean.getPrice());
+		setQuantity(orderDataBean.getQuantity());
+		setSymbol(orderDataBean.getSymbol());
+	}
+
+	public CustomOrderBean(int orderId, String orderType, String orderStatus,
+			Calendar openDate, Calendar completionDate, double quantity,
+			BigDecimal price, BigDecimal orderFee, String symbol) {
+		setOrderID(orderId);
+		setOrderType(orderType);
+		setOrderStatus(orderStatus);
+		setOpenDate(openDate);
+		setCompletionDate(completionDate);
+		setQuantity(quantity);
+		setPrice(price);
+		setOrderFee(orderFee);
+		setSymbol(symbol);
+	}
+
+	/**
+	 * Constructs data instance for order information.
+	 * 
+	 * @param accountId
+	 *            the account ID of the buyer or seller
+	 * @param holdingId
+	 *            the ID of corresponding holding of the order
+	 */
+	public CustomOrderBean(int accountId, int holdingId) {
+		this.accountId = accountId;
+		this.holdingId = holdingId;
+	}
+
+	public int getAccountId() {
+		return accountId;
+	}
+
+	public void setAccountId(int accountId) {
+		this.accountId = accountId;
+	}
+
+	public int getHoldingId() {
+		return holdingId;
+	}
+
+	public void setHoldingId(int holdingId) {
+		this.holdingId = holdingId;
+	}
+}

Added: incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/CustomQuoteBean.java
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/CustomQuoteBean.java?rev=811675&view=auto
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/CustomQuoteBean.java (added)
+++ incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/CustomQuoteBean.java Sat Sep  5 16:41:14 2009
@@ -0,0 +1,62 @@
+/*
+ * 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.
+ */
+
+package org.apache.stonehenge.stocktrader;
+
+import java.math.BigDecimal;
+
+import com.ibm.websphere.samples.trade.QuoteDataBean;
+
+/**
+ * This class to be used as the data model for quote information.
+ */
+public class CustomQuoteBean extends QuoteDataBean {
+
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = 7129349720689180586L;
+
+	public CustomQuoteBean() {
+	}
+
+	/**
+	 * Constructs an instance for quote information.
+	 * 
+	 * @param symbol
+	 * @param companyName
+	 * @param volume
+	 * @param price
+	 * @param open
+	 * @param low
+	 * @param high
+	 * @param change
+	 */
+	public CustomQuoteBean(String symbol, String companyName, double volume,
+			BigDecimal price, BigDecimal open, BigDecimal low, BigDecimal high,
+			double change) {
+		setSymbol(symbol);
+		setCompanyName(companyName);
+		setVolume(volume);
+		setPrice(price);
+		setOpen(open);
+		setLow(low);
+		setHigh(high);
+		setChange(change);
+	}
+
+}

Added: incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/dal/CustomerDAO.java
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/dal/CustomerDAO.java?rev=811675&view=auto
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/dal/CustomerDAO.java (added)
+++ incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/dal/CustomerDAO.java Sat Sep  5 16:41:14 2009
@@ -0,0 +1,69 @@
+/*
+ * 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.
+ */
+
+
+package org.apache.stonehenge.stocktrader.dal;
+
+import java.math.BigDecimal;
+import java.util.List;
+
+import org.apache.stonehenge.stocktrader.CustomAccountBean;
+import org.apache.stonehenge.stocktrader.CustomAccountProfileBean;
+import org.apache.stonehenge.stocktrader.CustomOrderBean;
+import org.apache.stonehenge.stocktrader.CustomHoldingBean;
+
+public interface CustomerDAO {
+
+	public CustomHoldingBean getHoldingForUpdate(int orderId)
+			throws DAOException;
+
+	public CustomHoldingBean getHolding(String userId, int holdingID)
+			throws DAOException;
+
+	public void updateAccountBalance(int accountId, BigDecimal total)
+			throws DAOException;
+
+	public CustomAccountBean login(String userId, String password)
+			throws DAOException;
+
+	public void logoutUser(String userId) throws DAOException;
+
+	public CustomAccountBean getCustomerByUserId(String userId)
+			throws DAOException;
+
+	public CustomAccountProfileBean getAccountProfileData(String userId)
+			throws DAOException;
+
+	public List<CustomOrderBean> getOrders(String userId, boolean top,
+			int maxTop, int maxDefault) throws DAOException;
+
+	public List<CustomOrderBean> getClosedOrders(String userId)
+			throws DAOException;
+
+	public void insertAccountProfile(CustomAccountProfileBean accountProfileBean)
+			throws DAOException;
+
+	public void insertAccount(CustomAccountBean accountBean)
+			throws DAOException;
+
+	public CustomAccountProfileBean update(
+			CustomAccountProfileBean customAccountProfile) throws DAOException;
+
+	public List<CustomHoldingBean> getHoldings(String userID)
+			throws DAOException;
+
+}

Added: incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/dal/DAOException.java
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/dal/DAOException.java?rev=811675&view=auto
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/dal/DAOException.java (added)
+++ incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/dal/DAOException.java Sat Sep  5 16:41:14 2009
@@ -0,0 +1,32 @@
+/*
+ * 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.
+ */
+
+
+package org.apache.stonehenge.stocktrader.dal;
+
+public class DAOException extends Exception {
+
+	private static final long serialVersionUID = -3206469251941804179L;
+
+	public DAOException(String message) {
+		super(message);
+	}
+
+	public DAOException(String message, Throwable throwable) {
+		super(message, throwable);
+	}
+}

Added: incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/dal/DAOFactory.java
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/dal/DAOFactory.java?rev=811675&view=auto
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/dal/DAOFactory.java (added)
+++ incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/dal/DAOFactory.java Sat Sep  5 16:41:14 2009
@@ -0,0 +1,97 @@
+/*
+ * 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.
+ */
+
+package org.apache.stonehenge.stocktrader.dal;
+
+import org.apache.stonehenge.stocktrader.mssql.MSSQLDAOFactory;
+import org.apache.stonehenge.stocktrader.mysql.MySQLDAOFactory;
+import org.apache.stonehenge.stocktrader.util.StockTraderUtility;
+
+import java.util.Properties;
+import java.io.InputStream;
+import java.io.IOException;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+public abstract class DAOFactory {
+    public static final String PROP_DB_HOST = "org.apache.stonehenge.stocktrader.database.host";
+    public static final String PROP_DB_PORT = "org.apache.stonehenge.stocktrader.database.port";
+    public static final String PROP_DB_NAME = "org.apache.stonehenge.stocktrader.database.db";
+    public static final String PROP_DB_USER = "org.apache.stonehenge.stocktrader.database.user";
+    public static final String PROP_DB_PASSWORD = "org.apache.stonehenge.stocktrader.database.password";
+    public static final String PROP_DB_TYPE = "org.apache.stonehenge.stocktrader.database.type";
+
+    public static Properties prop = null;
+
+    public abstract CustomerDAO getCustomerDAO() throws DAOException;
+
+    public abstract MarketSummaryDAO getMarketSummaryDAO() throws DAOException;
+
+    public abstract OrderDAO getOrderDAO() throws DAOException;
+
+    public static DAOFactory getFacotry() {
+        DAOFactory factory;
+        loadProperties();
+        if ("mysql".equals(prop.getProperty(PROP_DB_TYPE))) {
+            factory = MySQLDAOFactory.getInstance();
+            return factory;
+        } else if ("mssql".equals(prop.getProperty(PROP_DB_TYPE))) {
+            factory = MSSQLDAOFactory.getInstance();
+            return factory;
+        } else {
+            throw new IllegalArgumentException("Unknown Database type " + prop.getProperty(PROP_DB_TYPE));
+        }
+    }
+
+    public static void loadProperties() {
+        Log logger = LogFactory.getLog(DAOFactory.class);
+        if (prop == null) {
+            prop = new Properties();
+//			MessageContext messageContext = MessageContext.getCurrentMessageContext();
+//			if (messageContext != null) {
+//				AxisService service = messageContext.getAxisService();
+//				ClassLoader serviceClassLoader = service.getClassLoader();
+//				InputStream is = serviceClassLoader.getResourceAsStream(StockTraderUtility.DB_PROPERRTIES_FILE);
+//				if (is != null) {
+//					try {
+//						prop.load(is);
+//					} catch (IOException e) {
+//						logger.debug("Unable to load mysql-db properties file and using [jdbc:mysql://localhost/stocktraderdb?user=trade&password=trade] as the default connection",e);
+//					}
+//				} else {
+//					logger.debug("Unable to load mysql-db properties file and using [jdbc:mysql://localhost/stocktraderdb?user=trade&password=trade] as the default connection");
+//
+//				}
+//			}
+
+            InputStream is = DAOFactory.class.getClassLoader()
+                    .getResourceAsStream(StockTraderUtility.DB_PROPERRTIES_FILE);
+            if (is != null) {
+                try {
+                    prop.load(is);
+                } catch (IOException e) {
+                    logger.debug("Unable to load mysql-db properties file and using [jdbc:mysql://localhost/stocktraderdb?user=trade&password=trade] as the default connection", e);
+                }
+            } else {
+                logger.debug("Unable to load mysql-db properties file and using [jdbc:mysql://localhost/stocktraderdb?user=trade&password=trade] as the default connection");
+
+            }
+        }
+    }
+
+}
\ No newline at end of file

Added: incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/dal/MarketSummaryDAO.java
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/dal/MarketSummaryDAO.java?rev=811675&view=auto
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/dal/MarketSummaryDAO.java (added)
+++ incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/dal/MarketSummaryDAO.java Sat Sep  5 16:41:14 2009
@@ -0,0 +1,36 @@
+/*
+ * 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.
+ */
+
+package org.apache.stonehenge.stocktrader.dal;
+
+import org.apache.stonehenge.stocktrader.CustomMarketSummaryBean;
+import org.apache.stonehenge.stocktrader.CustomQuoteBean;
+
+public interface MarketSummaryDAO {
+
+	public CustomQuoteBean getQuote(String symbol) throws DAOException;
+	
+	public CustomQuoteBean getQuoteForUpdate(String symbol) throws DAOException;
+
+	public void updateStockPriceVolume(double quantity, CustomQuoteBean quote)
+			throws DAOException;
+
+	public CustomMarketSummaryBean getCustomMarketSummary() throws DAOException;
+	
+	 
+
+}

Added: incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/dal/OrderDAO.java
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/dal/OrderDAO.java?rev=811675&view=auto
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/dal/OrderDAO.java (added)
+++ incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/dal/OrderDAO.java Sat Sep  5 16:41:14 2009
@@ -0,0 +1,63 @@
+/*
+ * 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.
+ */
+
+package org.apache.stonehenge.stocktrader.dal;
+
+import java.math.BigDecimal;
+
+import org.apache.stonehenge.stocktrader.CustomHoldingBean;
+import org.apache.stonehenge.stocktrader.CustomOrderBean;
+import org.apache.stonehenge.stocktrader.CustomQuoteBean;
+
+public interface OrderDAO {
+
+	public CustomQuoteBean getQuoteForUpdate(String symbol) throws DAOException;
+
+	public int createHolding(CustomOrderBean order) throws DAOException;
+
+	public void updateHolding(int holdingId, double quantity)
+			throws DAOException;
+
+	public void deleteHolding(int holdingId) throws DAOException;
+
+	public CustomHoldingBean getHoldingForUpdate(int orderId)
+			throws DAOException;
+
+	public CustomHoldingBean getHolding(int holdingId) throws DAOException;
+
+	public void updateAccountBalance(int accountId, BigDecimal total)
+			throws DAOException;
+
+	public CustomOrderBean createOrder(String userID, String symbol,
+			String orderType, double quantity, int holdingID)
+			throws DAOException;
+
+	public void updateOrder(CustomOrderBean order) throws DAOException;
+
+	public void updateStockPriceVolume(double quantity, CustomQuoteBean quote)
+			throws DAOException;
+
+	public void closeOrder(CustomOrderBean order) throws DAOException;
+
+    public void beginTransaction() throws DAOException;
+
+    public void commitTransaction() throws DAOException;
+
+    public void rollbackTransaction() throws DAOException;
+
+    public void close() throws DAOException;
+}

Added: incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/mssql/AbstractMSSQLDAO.java
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/mssql/AbstractMSSQLDAO.java?rev=811675&view=auto
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/mssql/AbstractMSSQLDAO.java (added)
+++ incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/mssql/AbstractMSSQLDAO.java Sat Sep  5 16:41:14 2009
@@ -0,0 +1,87 @@
+/*
+ * 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.
+ */
+
+package org.apache.stonehenge.stocktrader.mssql;
+
+import java.sql.Connection;
+import java.sql.SQLException;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.stonehenge.stocktrader.dal.DAOException;
+
+public class AbstractMSSQLDAO {
+
+	private static final Log logger = LogFactory.getLog(AbstractMSSQLDAO.class);
+
+	protected Connection sqlConnection;
+
+	private int previousTransactionIsolation;
+
+	public AbstractMSSQLDAO(Connection sqlConnection) throws DAOException {
+		this.sqlConnection = sqlConnection;
+	}
+
+	public void beginTransaction() throws DAOException {
+		logger.debug("AbstractMSSQLDAO.beginTransaction()");
+		try {
+			sqlConnection.setAutoCommit(false);
+			previousTransactionIsolation = sqlConnection
+					.getTransactionIsolation();
+			sqlConnection
+					.setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED);
+		} catch (SQLException e) {
+			e.printStackTrace();
+			logger.debug("", e);
+			throw new DAOException(
+					"Exception was thrown during the start of transaction", e);
+		}
+	}
+
+	public void commitTransaction() throws DAOException {
+		logger.debug("AbstractMSSQLDAO.commitTransaction()");
+		try {
+			sqlConnection.commit();
+			sqlConnection.setAutoCommit(true);
+			sqlConnection.setTransactionIsolation(previousTransactionIsolation);
+		} catch (SQLException e) {
+			throw new DAOException(
+					"Exception is thrown during the commit of transaction", e);
+		}
+	}
+
+	public void rollbackTransaction() throws DAOException {
+		logger.debug("AbstractMSSQLDAO.rollbackTransaction()");
+		try {
+			sqlConnection.rollback();
+			sqlConnection.setAutoCommit(true);
+			sqlConnection.setTransactionIsolation(previousTransactionIsolation);
+		} catch (SQLException e) {
+			throw new DAOException(
+					"Exception is thrown during the rollback of transaction", e);
+
+		}
+	}
+
+	public void close() throws DAOException {
+		try {
+			sqlConnection.close();
+		} catch (SQLException e) {
+			throw new DAOException("", e);
+		}
+	}
+}