incubator-stonehenge-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chint...@apache.org
Subject svn commit: r958838 [1/42] - in /incubator/stonehenge/trunk/stocktrader: dotnet/ dotnet/setup_utilities/Util/ metro/ metro/active_sts/ metro/active_sts/etc/ metro/active_sts/src/org/apache/stonehenge/stocktrader/sts/ metro/business_service/ metro/busin...
Date Tue, 29 Jun 2010 06:33:57 GMT
Author: chintana
Date: Tue Jun 29 06:33:54 2010
New Revision: 958838

URL: http://svn.apache.org/viewvc?rev=958838&view=rev
Log:
Fixing EOL style. Thanks Sebb.

Modified:
    incubator/stonehenge/trunk/stocktrader/dotnet/Clean.bat   (props changed)
    incubator/stonehenge/trunk/stocktrader/dotnet/Readme.txt   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/dotnet/UpdateSrc.cmd   (props changed)
    incubator/stonehenge/trunk/stocktrader/dotnet/setup_utilities/Util/AuthorizeWcfServices.bat   (props changed)
    incubator/stonehenge/trunk/stocktrader/metro/README.txt   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/active_sts/build.xml   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/active_sts/etc/sun-jaxws.xml   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/active_sts/etc/web.xml   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/active_sts/src/org/apache/stonehenge/stocktrader/sts/ActiveSTSAttributeProvider.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/active_sts/src/org/apache/stonehenge/stocktrader/sts/STSImpl.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/active_sts/src/org/apache/stonehenge/stocktrader/sts/UsernamePasswordValidator.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/build.xml   (props changed)
    incubator/stonehenge/trunk/stocktrader/metro/business_service/build.xml   (props changed)
    incubator/stonehenge/trunk/stocktrader/metro/business_service/etc/sun-jaxws.xml   (props changed)
    incubator/stonehenge/trunk/stocktrader/metro/business_service/etc/web.xml   (props changed)
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/BeanFactory.java   (props changed)
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/services/TradeConfigServiceClient.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/services/TradeOrderConfig.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/services/TradeOrderServiceClient.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/services/TradeServiceImpl.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/services/TraderServiceManager.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/business_service/src/wsit-client.xml   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/common/src/org/apache/stonehenge/stocktrader/CustomAccountBean.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/common/src/org/apache/stonehenge/stocktrader/CustomAccountProfileBean.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/common/src/org/apache/stonehenge/stocktrader/CustomHoldingBean.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/common/src/org/apache/stonehenge/stocktrader/CustomMarketSummaryBean.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/common/src/org/apache/stonehenge/stocktrader/CustomOrderBean.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/common/src/org/apache/stonehenge/stocktrader/CustomQuoteBean.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/common/src/org/apache/stonehenge/stocktrader/dal/CustomerDAO.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/common/src/org/apache/stonehenge/stocktrader/dal/DAOException.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/common/src/org/apache/stonehenge/stocktrader/dal/DAOFactory.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/common/src/org/apache/stonehenge/stocktrader/dal/MarketSummaryDAO.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/common/src/org/apache/stonehenge/stocktrader/dal/OrderDAO.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/common/src/org/apache/stonehenge/stocktrader/mssql/AbstractMSSQLDAO.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/common/src/org/apache/stonehenge/stocktrader/mssql/MSSQLCustomerDAO.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/common/src/org/apache/stonehenge/stocktrader/mssql/MSSQLDAOFactory.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/common/src/org/apache/stonehenge/stocktrader/mssql/MSSQLMarketSummaryDAO.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/common/src/org/apache/stonehenge/stocktrader/mssql/MSSQLOrderDAO.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/common/src/org/apache/stonehenge/stocktrader/mysql/AbstractMySQLDAO.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/common/src/org/apache/stonehenge/stocktrader/mysql/MySQLCustomerDAO.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/common/src/org/apache/stonehenge/stocktrader/mysql/MySQLDAOFactory.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/common/src/org/apache/stonehenge/stocktrader/mysql/MySQLMarketSummaryDAO.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/common/src/org/apache/stonehenge/stocktrader/mysql/MySQLOrderDAO.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/common/src/org/apache/stonehenge/stocktrader/util/StockTraderSQLUtil.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/common/src/org/apache/stonehenge/stocktrader/util/StockTraderUtility.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/config_servcie_common_dal/src/org/apache/stonehenge/stocktrader/dal/ConfigServiceDAO.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/config_servcie_common_dal/src/org/apache/stonehenge/stocktrader/dal/ConfigServiceDaoFactory.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/config_servcie_common_dal/src/org/apache/stonehenge/stocktrader/dal/ConnectionProvider.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/config_servcie_common_dal/src/org/apache/stonehenge/stocktrader/dal/impl/ConfigServiceDAOImpl.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/config_servcie_common_dal/src/org/apache/stonehenge/stocktrader/dal/impl/MSSQLConnectionProvider.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/config_servcie_common_dal/src/org/apache/stonehenge/stocktrader/dal/impl/MySQLConnectionProvider.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/config_service/build.xml   (props changed)
    incubator/stonehenge/trunk/stocktrader/metro/config_service/etc/sun-jaxws.xml   (props changed)
    incubator/stonehenge/trunk/stocktrader/metro/config_service/etc/web.xml   (props changed)
    incubator/stonehenge/trunk/stocktrader/metro/config_service/src/org/apache/stonehenge/stocktrader/dal/ConfigServiceDAO.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/config_service/src/org/apache/stonehenge/stocktrader/dal/ConfigServiceDAOImpl.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/config_service/src/org/apache/stonehenge/stocktrader/dal/ConnectionProvider.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/config_service/src/org/apache/stonehenge/stocktrader/dal/DAOFactory.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/config_service/src/org/apache/stonehenge/stocktrader/mssql/MSSQLConnectionProvider.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/config_service/src/org/apache/stonehenge/stocktrader/mysql/MySQLConnectionProvider.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/config_service/src/org/apache/stonehenge/stocktrader/services/ConfigServiceServiceImpl.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/config_service/test/org/apache/stonehenge/stocktrader/mssql/ConfigServiceDAOImplTest.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/etc/active_sts/sts_schema.xsd   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/etc/as.xml   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/etc/build.properties   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/etc/business_service/custom-jaxbbean.xml   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/etc/business_service/custom-sei.xml   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/etc/business_service/xsd0.xsd   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/etc/business_service/xsd1.xsd   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/etc/config_service/custom-jaxbbean.xml   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/etc/config_service/custom-sei.xml   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/etc/config_service/xsd0.xsd   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/etc/config_service/xsd1.xsd   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/etc/config_service/xsd2.xsd   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/etc/order_processor/custom-jaxbbean.xml   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/etc/order_processor/custom-sei.xml   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/etc/order_processor/xsd0.xsd   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/etc/order_processor/xsd1.xsd   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/etc/order_processor/xsd2.xsd   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/build.xml   (props changed)
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/etc/sun-jaxws.xml   (props changed)
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/etc/web.xml   (props changed)
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/src/org/apache/stonehenge/stocktrader/BeanFactory.java   (props changed)
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/src/org/apache/stonehenge/stocktrader/UsernamePasswordValidator.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/src/org/apache/stonehenge/stocktrader/service/OrderProcessManager.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/src/org/apache/stonehenge/stocktrader/service/OrderProcessorImpl.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/order_processor/src/org/apache/stonehenge/stocktrader/util/OrderProcessorUtility.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/resources/conf/TradeServiceConfig.properties   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/metro/resources/conf/db.properties   (props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/ConfigService.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/ConfigServiceCallbackHandler.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/ConfigServiceStub.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/trade/GetBSConfig.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/trade/GetBSConfigResponse.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/trade/GetBSLocations.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/trade/GetBSLocationsResponse.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/trade/GetClientConfig.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/trade/GetClientConfigResponse.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/trade/GetOPSConfig.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/trade/GetOPSConfigResponse.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/trade/GetOPSLocations.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/trade/GetOPSLocationsResponse.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/trade/SetBSToOPS.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/trade/SetBSToOPSResponse.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/trade/SetClientToBS.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/trade/SetClientToBSResponse.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/trade/SetServiceLocation.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/trade/SetServiceLocationResponse.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/trade/imports/ExtensionMapper.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/trade_configservicedatacontract/ArrayOfServiceLocation.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/trade_configservicedatacontract/ArrayOfServiceLocationE.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/trade_configservicedatacontract/BSConfigRequest.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/trade_configservicedatacontract/BSConfigRequestE.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/trade_configservicedatacontract/BSConfigResponse.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/trade_configservicedatacontract/BSConfigResponseE.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/trade_configservicedatacontract/BSToOPS.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/trade_configservicedatacontract/BSToOPSE.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/trade_configservicedatacontract/ClientConfigRequest.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/trade_configservicedatacontract/ClientConfigRequestE.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/trade_configservicedatacontract/ClientConfigResponse.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/trade_configservicedatacontract/ClientConfigResponseE.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/trade_configservicedatacontract/ClientToBS.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/trade_configservicedatacontract/ClientToBSE.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/trade_configservicedatacontract/OPSConfigRequest.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/trade_configservicedatacontract/OPSConfigRequestE.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/trade_configservicedatacontract/OPSConfigResponse.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/trade_configservicedatacontract/OPSConfigResponseE.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/trade_configservicedatacontract/ServiceLocation.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/config/trade_configservicedatacontract/ServiceLocationE.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/common/src/com/ibm/websphere/samples/trade/GetProfileIdFromStsIdentifier.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/common/src/com/ibm/websphere/samples/trade/GetProfileIdFromStsIdentifierResponse.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/identity/pom.xml   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/identity/src/org/apache/stonehenge/stocktrader/attributeservice/StonehengeAttributeService.java   (contents, props changed)
    incubator/stonehenge/trunk/stocktrader/wsas/identity/src/org/apache/stonehenge/stocktrader/attributeservice/internal/CustomAttributeServiceComponent.java   (props changed)

Propchange: incubator/stonehenge/trunk/stocktrader/dotnet/Clean.bat
------------------------------------------------------------------------------
    svn:eol-style = CRLF

Modified: incubator/stonehenge/trunk/stocktrader/dotnet/Readme.txt
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/dotnet/Readme.txt?rev=958838&r1=958837&r2=958838&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/dotnet/Readme.txt (original)
+++ incubator/stonehenge/trunk/stocktrader/dotnet/Readme.txt Tue Jun 29 06:33:54 2010
@@ -1,36 +1,36 @@
-1. Follow the steps discribed in the Stonehenge .NET StockTrader Installation Guide,
-   http://cwiki.apache.org/confluence/display/STONEHENGE/Stonehenge+.NET+StockTrader+Installation+Guide
-
-2. Install the Geneva Framework Beta 2.
-   
-   1. From http://msdn.microsoft.com/en-us/evalcenter/dd440951.aspx choose the option to "Get Started Today".
-   2. Log in with your Live ID.
-   3. Click the continue button to register for the download.
-   4. Download the appropriate version of the Geneva Framework. You can choose either the framework for a smaller download or the Framework SDK to get samples and help files.
-   5. Install the Geneva Framework.
-
-3. Open ports 9001 on your firewall (This port is used by the Active STS).
-
-   1. Control Panel->Windows Firewall->"Allow a program through the fire wall"
-   2. You will get to a dialog, choose exceptions Tab
-   3. Click Add Port
-   4. Name it "9001" and put 9001 in the port Number field
-   
-4. Setup the website under IIS
-
-   1. In IIS manager
-   2. Right-click Default Website and choose Add a Virtual Directory
-   3. Enter trade_identity as the alias.
-   4. Select identity_provider\PassiveSts as the physical path
-   5. If your running vista, right-click the virtual directory and choose Convert to Application.
-
-5. Run the StockTrader demo
-
-   1. Start the Order Processor, Configuration, Business Services and Active STS.
-         1. Right click the RunServices.bat file and choose Run as Administrator. (Running the AuthorizeWcfServices.bat script in the \Util directory will prevent you from having to always run the services as Administrator)
-         2. Choose either a run mode of either Debug or Release.
-         3. This will start the ConfigurationService, OrderProcessorService, BusinessService and Active STS console applications.
-            	Note
-
-            Console App should remain open and active (do not exit application!)
-   2. In a browser, run the Web app http://localhost/trade/
+1. Follow the steps discribed in the Stonehenge .NET StockTrader Installation Guide,
+   http://cwiki.apache.org/confluence/display/STONEHENGE/Stonehenge+.NET+StockTrader+Installation+Guide
+
+2. Install the Geneva Framework Beta 2.
+   
+   1. From http://msdn.microsoft.com/en-us/evalcenter/dd440951.aspx choose the option to "Get Started Today".
+   2. Log in with your Live ID.
+   3. Click the continue button to register for the download.
+   4. Download the appropriate version of the Geneva Framework. You can choose either the framework for a smaller download or the Framework SDK to get samples and help files.
+   5. Install the Geneva Framework.
+
+3. Open ports 9001 on your firewall (This port is used by the Active STS).
+
+   1. Control Panel->Windows Firewall->"Allow a program through the fire wall"
+   2. You will get to a dialog, choose exceptions Tab
+   3. Click Add Port
+   4. Name it "9001" and put 9001 in the port Number field
+   
+4. Setup the website under IIS
+
+   1. In IIS manager
+   2. Right-click Default Website and choose Add a Virtual Directory
+   3. Enter trade_identity as the alias.
+   4. Select identity_provider\PassiveSts as the physical path
+   5. If your running vista, right-click the virtual directory and choose Convert to Application.
+
+5. Run the StockTrader demo
+
+   1. Start the Order Processor, Configuration, Business Services and Active STS.
+         1. Right click the RunServices.bat file and choose Run as Administrator. (Running the AuthorizeWcfServices.bat script in the \Util directory will prevent you from having to always run the services as Administrator)
+         2. Choose either a run mode of either Debug or Release.
+         3. This will start the ConfigurationService, OrderProcessorService, BusinessService and Active STS console applications.
+            	Note
+
+            Console App should remain open and active (do not exit application!)
+   2. In a browser, run the Web app http://localhost/trade/

Propchange: incubator/stonehenge/trunk/stocktrader/dotnet/Readme.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/stonehenge/trunk/stocktrader/dotnet/UpdateSrc.cmd
------------------------------------------------------------------------------
    svn:eol-style = CRLF

Propchange: incubator/stonehenge/trunk/stocktrader/dotnet/setup_utilities/Util/AuthorizeWcfServices.bat
------------------------------------------------------------------------------
    svn:eol-style = CRLF

Modified: incubator/stonehenge/trunk/stocktrader/metro/README.txt
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/README.txt?rev=958838&r1=958837&r2=958838&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/metro/README.txt (original)
+++ incubator/stonehenge/trunk/stocktrader/metro/README.txt Tue Jun 29 06:33:54 2010
@@ -1,68 +1,68 @@
-NOTICE
----------
-Before deploying Metro version of BS, and OPS, you should create a lib folder, download jar files as below, and put in the specified folders.
-
-Structure of Stocktrader Directories
--------------------------------------
-STOCKTRADER_HOME
-|__acitive_sts
-|__business_service
-|__common
-|__config_servcie_common_dal
-|__config_service
-|__order_processor
-|__resources
-|__etc
-|__lib
-	|__metro
-	|__javaee
-	|__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
-	
-javaee :
-    javaee.jar
-	Get from glassfish/lib
-
-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
-        commons-beanutils-1.8.0.jar
-        commons-codec-1.3.jar
-        commons-collections-3.2.1.jar
-        commons-digester-2.0.jar
-        commons-el.jar
- 	From: http://commons.apache.org/
-  
-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
+NOTICE
+---------
+Before deploying Metro version of BS, and OPS, you should create a lib folder, download jar files as below, and put in the specified folders.
+
+Structure of Stocktrader Directories
+-------------------------------------
+STOCKTRADER_HOME
+|__acitive_sts
+|__business_service
+|__common
+|__config_servcie_common_dal
+|__config_service
+|__order_processor
+|__resources
+|__etc
+|__lib
+	|__metro
+	|__javaee
+	|__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
+	
+javaee :
+    javaee.jar
+	Get from glassfish/lib
+
+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
+        commons-beanutils-1.8.0.jar
+        commons-codec-1.3.jar
+        commons-collections-3.2.1.jar
+        commons-digester-2.0.jar
+        commons-el.jar
+ 	From: http://commons.apache.org/
+  
+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

Propchange: incubator/stonehenge/trunk/stocktrader/metro/README.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/stonehenge/trunk/stocktrader/metro/active_sts/build.xml
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/active_sts/build.xml?rev=958838&r1=958837&r2=958838&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/metro/active_sts/build.xml (original)
+++ incubator/stonehenge/trunk/stocktrader/metro/active_sts/build.xml Tue Jun 29 06:33:54 2010
@@ -1,114 +1,114 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
-	~ 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.
--->
-
-<project basedir="." default="war" name="active_sts">
-    <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="common.src.dir" value="${basedir}/../common/src"/>
-
-    <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="deploy.war" value="${deploy.dir}/${war.name}"/>
-
-    <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="setup" depends="clean">
-        <mkdir dir="${build.home}"/>
-        <mkdir dir="${build.classes.home}"/>
-        <mkdir dir="${build.war.home}"/>
-    </target>
-
-    <target name="clean">
-        <delete dir="${build.home}" includeEmptyDirs="true"/>
-    </target>
-
-    <target name="import-ws" depends="setup">
-        <wsimport debug="${debug}" verbose="${verbose}" keep="${keep}" destdir="${build.classes.home}"
-                  wsdl="${active.sts.wsdl}" extension="true">
-            <xjcarg value="-extension"/>
-        </wsimport>
-    </target>
-
-    <target name="build" depends="import-ws">
-        <javac debug="on" fork="true" srcdir="${common.src.dir}" destdir="${build.classes.home}">
-            <classpath refid="all.classpath"/>
-        </javac>
-        <copy todir="${build.classes.home}">
-            <fileset dir="../resources/conf" includes="*.properties"/>
-        </copy>
-        <javac debug="on" fork="true" srcdir="${config.service.common.dal.dir}" destdir="${build.classes.home}">
-            <classpath refid="all.classpath"/>
-        </javac>
-        <javac debug="on" 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="${active.sts.binding.dir}"
-                    includes="*.wsdl, *.xsd"
-                    prefix="WEB-INF/wsdl"/>
-             <zipfileset dir="${active.sts.binding.dir}"
-                            includes="com.sun.*"
-                            prefix="WEB-INF/classes/META-INF/services"/>  
-                       
-            <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" depends="war">
-        <copy file="${war.file}" tofile="${deploy.war}"/>
-    </target>
-
-    <target name="undeploy">
-        <delete file="${deploy.dir}/${war.name}"/>
-    </target>
-
-    <target name="redeploy" depends="undeploy, deploy"/>
-</project>
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+	~ 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.
+-->
+
+<project basedir="." default="war" name="active_sts">
+    <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="common.src.dir" value="${basedir}/../common/src"/>
+
+    <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="deploy.war" value="${deploy.dir}/${war.name}"/>
+
+    <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="setup" depends="clean">
+        <mkdir dir="${build.home}"/>
+        <mkdir dir="${build.classes.home}"/>
+        <mkdir dir="${build.war.home}"/>
+    </target>
+
+    <target name="clean">
+        <delete dir="${build.home}" includeEmptyDirs="true"/>
+    </target>
+
+    <target name="import-ws" depends="setup">
+        <wsimport debug="${debug}" verbose="${verbose}" keep="${keep}" destdir="${build.classes.home}"
+                  wsdl="${active.sts.wsdl}" extension="true">
+            <xjcarg value="-extension"/>
+        </wsimport>
+    </target>
+
+    <target name="build" depends="import-ws">
+        <javac debug="on" fork="true" srcdir="${common.src.dir}" destdir="${build.classes.home}">
+            <classpath refid="all.classpath"/>
+        </javac>
+        <copy todir="${build.classes.home}">
+            <fileset dir="../resources/conf" includes="*.properties"/>
+        </copy>
+        <javac debug="on" fork="true" srcdir="${config.service.common.dal.dir}" destdir="${build.classes.home}">
+            <classpath refid="all.classpath"/>
+        </javac>
+        <javac debug="on" 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="${active.sts.binding.dir}"
+                    includes="*.wsdl, *.xsd"
+                    prefix="WEB-INF/wsdl"/>
+             <zipfileset dir="${active.sts.binding.dir}"
+                            includes="com.sun.*"
+                            prefix="WEB-INF/classes/META-INF/services"/>  
+                       
+            <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" depends="war">
+        <copy file="${war.file}" tofile="${deploy.war}"/>
+    </target>
+
+    <target name="undeploy">
+        <delete file="${deploy.dir}/${war.name}"/>
+    </target>
+
+    <target name="redeploy" depends="undeploy, deploy"/>
+</project>

Propchange: incubator/stonehenge/trunk/stocktrader/metro/active_sts/build.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/stonehenge/trunk/stocktrader/metro/active_sts/etc/sun-jaxws.xml
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/active_sts/etc/sun-jaxws.xml?rev=958838&r1=958837&r2=958838&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/metro/active_sts/etc/sun-jaxws.xml (original)
+++ incubator/stonehenge/trunk/stocktrader/metro/active_sts/etc/sun-jaxws.xml Tue Jun 29 06:33:54 2010
@@ -1,33 +1,33 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
-	~ 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.
--->
-
-<endpoints xmlns="http://java.sun.com/xml/ns/jax-ws/ri/runtime" version="2.0">
-
-    <endpoint
-        name="ActiveSTS"
-        implementation="org.apache.stonehenge.stocktrader.sts.STSImpl"
-        wsdl="ActiveSTS.wsdl"
-        service="{http://tempuri.org/}SecurityTokenService"
-        port="{http://tempuri.org/}ISecurityTokenService_Port"
-        binding="http://www.w3.org/2003/05/soap/bindings/HTTP/"
-        url-pattern="/ActiveSTS" />
-
-</endpoints>
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+	~ 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.
+-->
+
+<endpoints xmlns="http://java.sun.com/xml/ns/jax-ws/ri/runtime" version="2.0">
+
+    <endpoint
+        name="ActiveSTS"
+        implementation="org.apache.stonehenge.stocktrader.sts.STSImpl"
+        wsdl="ActiveSTS.wsdl"
+        service="{http://tempuri.org/}SecurityTokenService"
+        port="{http://tempuri.org/}ISecurityTokenService_Port"
+        binding="http://www.w3.org/2003/05/soap/bindings/HTTP/"
+        url-pattern="/ActiveSTS" />
+
+</endpoints>

Propchange: incubator/stonehenge/trunk/stocktrader/metro/active_sts/etc/sun-jaxws.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/stonehenge/trunk/stocktrader/metro/active_sts/etc/web.xml
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/active_sts/etc/web.xml?rev=958838&r1=958837&r2=958838&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/metro/active_sts/etc/web.xml (original)
+++ incubator/stonehenge/trunk/stocktrader/metro/active_sts/etc/web.xml Tue Jun 29 06:33:54 2010
@@ -1,43 +1,43 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
-	~ 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.
--->
-
-<web-app version="2.4" mlns="http://java.sun.com/xml/ns/j2ee">
-    <display-name>ActiveSTS</display-name>
-    <description>ActiveSTS</description>
-    <listener>
-        <listener-class>com.sun.xml.ws.transport.http.servlet.WSServletContextListener</listener-class>
-    </listener>
-    <servlet>
-        <servlet-name>ActiveSTS</servlet-name>
-        <display-name>ActiveSTS</display-name>
-        <description>JAX-WS endpoint - ActiveSTS</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>ActiveSTS</servlet-name>
-        <url-pattern>/ActiveSTS</url-pattern>
-    </servlet-mapping>
-    <session-config>
-        <session-timeout>60</session-timeout>
-    </session-config>
-</web-app>
-
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+	~ 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.
+-->
+
+<web-app version="2.4" mlns="http://java.sun.com/xml/ns/j2ee">
+    <display-name>ActiveSTS</display-name>
+    <description>ActiveSTS</description>
+    <listener>
+        <listener-class>com.sun.xml.ws.transport.http.servlet.WSServletContextListener</listener-class>
+    </listener>
+    <servlet>
+        <servlet-name>ActiveSTS</servlet-name>
+        <display-name>ActiveSTS</display-name>
+        <description>JAX-WS endpoint - ActiveSTS</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>ActiveSTS</servlet-name>
+        <url-pattern>/ActiveSTS</url-pattern>
+    </servlet-mapping>
+    <session-config>
+        <session-timeout>60</session-timeout>
+    </session-config>
+</web-app>
+

Propchange: incubator/stonehenge/trunk/stocktrader/metro/active_sts/etc/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/stonehenge/trunk/stocktrader/metro/active_sts/src/org/apache/stonehenge/stocktrader/sts/ActiveSTSAttributeProvider.java
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/active_sts/src/org/apache/stonehenge/stocktrader/sts/ActiveSTSAttributeProvider.java?rev=958838&r1=958837&r2=958838&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/metro/active_sts/src/org/apache/stonehenge/stocktrader/sts/ActiveSTSAttributeProvider.java (original)
+++ incubator/stonehenge/trunk/stocktrader/metro/active_sts/src/org/apache/stonehenge/stocktrader/sts/ActiveSTSAttributeProvider.java Tue Jun 29 06:33:54 2010
@@ -1,187 +1,187 @@
-/*
- * 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.sts;
-
-import com.sun.xml.ws.api.security.trust.Claims;
-import com.sun.xml.ws.api.security.trust.STSAttributeProvider;
-import com.sun.xml.wss.saml.Assertion;
-import com.sun.xml.wss.saml.AssertionUtil;
-import com.sun.xml.wss.saml.Attribute;
-import com.sun.xml.wss.saml.AttributeStatement;
-import com.sun.xml.wss.saml.AuthenticationStatement;
-import com.sun.xml.wss.saml.NameID;
-import com.sun.xml.wss.saml.NameIdentifier;
-import com.sun.xml.wss.saml.SAMLException;
-import org.w3c.dom.Element;
-
-import javax.security.auth.Subject;
-import javax.xml.namespace.QName;
-import java.security.Principal;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-
-public class ActiveSTSAttributeProvider implements STSAttributeProvider {
-    public Map<QName, List<String>> getClaimedAttributes(Subject subject, String appliesTo, String tokenType, Claims claims) {
-        String name = null;
-        //get user name from subject
-        Set<Principal> principals = subject.getPrincipals();
-        if (principals != null) {
-            final Iterator iterator = principals.iterator();
-            while (iterator.hasNext()) {
-                String cnName = principals.iterator().next().getName();
-                int pos = cnName.indexOf("=");
-                name = cnName.substring(pos + 1);
-                break;
-            }
-        }
-
-        Map<QName, List<String>> attrs = new HashMap<QName, List<String>>();
-
-        // Add user id, map the URL to a list of users
-        QName nameIdQName = new QName("http://sun.com", STSAttributeProvider.NAME_IDENTIFIER);
-        List<String> nameIdAttrs = new ArrayList<String>();
-        nameIdAttrs.add(name);
-        attrs.put(nameIdQName, nameIdAttrs);
-
-        // Add attributes
-
-        // Check if it is the ActAs case
-        if ("true".equals(claims.getOtherAttributes().get(new QName("ActAs")))) {
-            // Get the ActAs token
-            Element token = null;
-            for (Object obj : claims.getSupportingProperties()) {
-                if (obj instanceof Subject) {
-                    token = (Element) ((Subject) obj).getPublicCredentials().iterator().next();
-                    break;
-                }
-            }
-
-            try {
-                if (token != null) {
-                    addAttributes(token, attrs, true);
-                }
-            } catch (Exception ex) {
-                throw new RuntimeException(ex);
-            }
-        } else {
-            // Add Role attribute
-            QName testQName = new QName("http://sun.com", "Role");
-            List<String> testAttrs = new ArrayList<String>();
-            if(name == null)
-            {
-				name = "noname";
-            }
-            testAttrs.add(getUserRole(name));
-            attrs.put(testQName, testAttrs);
-        }
-
-        return attrs;
-    }
-
-    private String getUserRole(String userName) {
-//        if ("alice".equals(userName)) {
-//            return "staff ";
-//        }
-//
-//        if ("bob".equals(userName)) {
-//            return "manager";
-//        }
-
-        return "staff";
-    }
-
-    private void addAttributes(Element token, Map<QName, List<String>> attrs, boolean isActAs) throws SAMLException {
-        // only handle the case of UsernameToken and SAML assertion here
-        String name = null;
-        String nameNS = null;
-        String tokenName = token.getLocalName();
-        if ("UsernameToken".equals(tokenName)) {
-            // an UsernameToken: get the user name
-            name = token.getElementsByTagName("Username").item(0).getFirstChild().getNodeValue();
-        } else if ("Assertion".equals(tokenName)) {
-            // an SAML assertion
-            Assertion assertion = AssertionUtil.fromElement(token);
-
-            com.sun.xml.wss.saml.Subject subject = null;
-            NameID nameID = null;
-
-            // SAML 2.0
-            try {
-                subject = assertion.getSubject();
-            } catch (Exception ex) {
-                subject = null;
-            }
-
-            if (subject != null) {
-                nameID = subject.getNameId();
-            }
-
-            List<Object> statements = assertion.getStatements();
-            for (Object s : statements) {
-                if (s instanceof AttributeStatement) {
-                    List<Attribute> samlAttrs = ((AttributeStatement) s).getAttributes();
-                    for (Attribute samlAttr : samlAttrs) {
-                        String attrName = samlAttr.getName();
-                        String attrNS = samlAttr.getNameFormat();
-                        List<Object> samlAttrValues = samlAttr.getAttributes();
-                        List<String> attrValues = new ArrayList<String>();
-                        for (Object samlAttrValue : samlAttrValues) {
-                            attrValues.add(((Element) samlAttrValue).getFirstChild().getNodeValue());
-                        }
-                        attrs.put(new QName(attrNS, attrName), attrValues);
-                    }
-
-                    // for SAML 1.0, 1.1
-                    if (subject == null) {
-                        subject = ((AttributeStatement) s).getSubject();
-                    }
-                } else if (s instanceof AuthenticationStatement) {
-                    subject = ((AuthenticationStatement) s).getSubject();
-                }
-            }
-
-            // Get the user identifier in the Subject:
-            if (nameID != null) {
-                //SAML 2.0 case
-                name = nameID.getValue();
-                nameNS = nameID.getNameQualifier();
-            } else {
-                // SAML 1.0, 1.1. case
-                NameIdentifier nameIdentifier = subject.getNameIdentifier();
-                if (nameIdentifier != null) {
-                    name = nameIdentifier.getValue();
-                    nameNS = nameIdentifier.getNameQualifier();
-                }
-            }
-
-            String idName = isActAs ? "actor" : NAME_IDENTIFIER;
-            List<String> nameIds = new ArrayList<String>();
-            
-            String actorXml = "<Actor><saml:Attribute AttributeName=\"name\" AttributeNamespace=\"http://schemas.xmlsoap.org/ws/2005/05/identity/claims\" xmlns:saml=\"urn:oasis:names:tc:SAML:1.0:assertion\">" +
-              "<saml:AttributeValue>" + name + "</saml:AttributeValue></saml:Attribute></Actor>";
-              
-            nameIds.add(actorXml);
-            
-            attrs.put(new QName("http://schemas.xmlsoap.org/ws/2009/09/identity/claims/", idName), nameIds);
-        }
-    }
-}
+/*
+ * 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.sts;
+
+import com.sun.xml.ws.api.security.trust.Claims;
+import com.sun.xml.ws.api.security.trust.STSAttributeProvider;
+import com.sun.xml.wss.saml.Assertion;
+import com.sun.xml.wss.saml.AssertionUtil;
+import com.sun.xml.wss.saml.Attribute;
+import com.sun.xml.wss.saml.AttributeStatement;
+import com.sun.xml.wss.saml.AuthenticationStatement;
+import com.sun.xml.wss.saml.NameID;
+import com.sun.xml.wss.saml.NameIdentifier;
+import com.sun.xml.wss.saml.SAMLException;
+import org.w3c.dom.Element;
+
+import javax.security.auth.Subject;
+import javax.xml.namespace.QName;
+import java.security.Principal;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+public class ActiveSTSAttributeProvider implements STSAttributeProvider {
+    public Map<QName, List<String>> getClaimedAttributes(Subject subject, String appliesTo, String tokenType, Claims claims) {
+        String name = null;
+        //get user name from subject
+        Set<Principal> principals = subject.getPrincipals();
+        if (principals != null) {
+            final Iterator iterator = principals.iterator();
+            while (iterator.hasNext()) {
+                String cnName = principals.iterator().next().getName();
+                int pos = cnName.indexOf("=");
+                name = cnName.substring(pos + 1);
+                break;
+            }
+        }
+
+        Map<QName, List<String>> attrs = new HashMap<QName, List<String>>();
+
+        // Add user id, map the URL to a list of users
+        QName nameIdQName = new QName("http://sun.com", STSAttributeProvider.NAME_IDENTIFIER);
+        List<String> nameIdAttrs = new ArrayList<String>();
+        nameIdAttrs.add(name);
+        attrs.put(nameIdQName, nameIdAttrs);
+
+        // Add attributes
+
+        // Check if it is the ActAs case
+        if ("true".equals(claims.getOtherAttributes().get(new QName("ActAs")))) {
+            // Get the ActAs token
+            Element token = null;
+            for (Object obj : claims.getSupportingProperties()) {
+                if (obj instanceof Subject) {
+                    token = (Element) ((Subject) obj).getPublicCredentials().iterator().next();
+                    break;
+                }
+            }
+
+            try {
+                if (token != null) {
+                    addAttributes(token, attrs, true);
+                }
+            } catch (Exception ex) {
+                throw new RuntimeException(ex);
+            }
+        } else {
+            // Add Role attribute
+            QName testQName = new QName("http://sun.com", "Role");
+            List<String> testAttrs = new ArrayList<String>();
+            if(name == null)
+            {
+				name = "noname";
+            }
+            testAttrs.add(getUserRole(name));
+            attrs.put(testQName, testAttrs);
+        }
+
+        return attrs;
+    }
+
+    private String getUserRole(String userName) {
+//        if ("alice".equals(userName)) {
+//            return "staff ";
+//        }
+//
+//        if ("bob".equals(userName)) {
+//            return "manager";
+//        }
+
+        return "staff";
+    }
+
+    private void addAttributes(Element token, Map<QName, List<String>> attrs, boolean isActAs) throws SAMLException {
+        // only handle the case of UsernameToken and SAML assertion here
+        String name = null;
+        String nameNS = null;
+        String tokenName = token.getLocalName();
+        if ("UsernameToken".equals(tokenName)) {
+            // an UsernameToken: get the user name
+            name = token.getElementsByTagName("Username").item(0).getFirstChild().getNodeValue();
+        } else if ("Assertion".equals(tokenName)) {
+            // an SAML assertion
+            Assertion assertion = AssertionUtil.fromElement(token);
+
+            com.sun.xml.wss.saml.Subject subject = null;
+            NameID nameID = null;
+
+            // SAML 2.0
+            try {
+                subject = assertion.getSubject();
+            } catch (Exception ex) {
+                subject = null;
+            }
+
+            if (subject != null) {
+                nameID = subject.getNameId();
+            }
+
+            List<Object> statements = assertion.getStatements();
+            for (Object s : statements) {
+                if (s instanceof AttributeStatement) {
+                    List<Attribute> samlAttrs = ((AttributeStatement) s).getAttributes();
+                    for (Attribute samlAttr : samlAttrs) {
+                        String attrName = samlAttr.getName();
+                        String attrNS = samlAttr.getNameFormat();
+                        List<Object> samlAttrValues = samlAttr.getAttributes();
+                        List<String> attrValues = new ArrayList<String>();
+                        for (Object samlAttrValue : samlAttrValues) {
+                            attrValues.add(((Element) samlAttrValue).getFirstChild().getNodeValue());
+                        }
+                        attrs.put(new QName(attrNS, attrName), attrValues);
+                    }
+
+                    // for SAML 1.0, 1.1
+                    if (subject == null) {
+                        subject = ((AttributeStatement) s).getSubject();
+                    }
+                } else if (s instanceof AuthenticationStatement) {
+                    subject = ((AuthenticationStatement) s).getSubject();
+                }
+            }
+
+            // Get the user identifier in the Subject:
+            if (nameID != null) {
+                //SAML 2.0 case
+                name = nameID.getValue();
+                nameNS = nameID.getNameQualifier();
+            } else {
+                // SAML 1.0, 1.1. case
+                NameIdentifier nameIdentifier = subject.getNameIdentifier();
+                if (nameIdentifier != null) {
+                    name = nameIdentifier.getValue();
+                    nameNS = nameIdentifier.getNameQualifier();
+                }
+            }
+
+            String idName = isActAs ? "actor" : NAME_IDENTIFIER;
+            List<String> nameIds = new ArrayList<String>();
+            
+            String actorXml = "<Actor><saml:Attribute AttributeName=\"name\" AttributeNamespace=\"http://schemas.xmlsoap.org/ws/2005/05/identity/claims\" xmlns:saml=\"urn:oasis:names:tc:SAML:1.0:assertion\">" +
+              "<saml:AttributeValue>" + name + "</saml:AttributeValue></saml:Attribute></Actor>";
+              
+            nameIds.add(actorXml);
+            
+            attrs.put(new QName("http://schemas.xmlsoap.org/ws/2009/09/identity/claims/", idName), nameIds);
+        }
+    }
+}

Propchange: incubator/stonehenge/trunk/stocktrader/metro/active_sts/src/org/apache/stonehenge/stocktrader/sts/ActiveSTSAttributeProvider.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/stonehenge/trunk/stocktrader/metro/active_sts/src/org/apache/stonehenge/stocktrader/sts/STSImpl.java
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/active_sts/src/org/apache/stonehenge/stocktrader/sts/STSImpl.java?rev=958838&r1=958837&r2=958838&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/metro/active_sts/src/org/apache/stonehenge/stocktrader/sts/STSImpl.java (original)
+++ incubator/stonehenge/trunk/stocktrader/metro/active_sts/src/org/apache/stonehenge/stocktrader/sts/STSImpl.java Tue Jun 29 06:33:54 2010
@@ -1,41 +1,41 @@
-/*
- * 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.sts;
-
-import com.sun.xml.ws.security.trust.sts.BaseSTSImpl;
-
-import javax.annotation.Resource;
-import javax.xml.transform.Source;
-import javax.xml.ws.Provider;
-import javax.xml.ws.Service;
-import javax.xml.ws.ServiceMode;
-import javax.xml.ws.WebServiceContext;
-import javax.xml.ws.WebServiceProvider;
-import javax.xml.ws.handler.MessageContext;
-
-@ServiceMode(value=Service.Mode.PAYLOAD)
-@WebServiceProvider(wsdlLocation="WEB-INF/wsdl/sts.wsdl")
-public class STSImpl extends BaseSTSImpl implements Provider<Source>{
-    @Resource
-    protected WebServiceContext context;
-    
-    protected MessageContext getMessageContext() {        
-        MessageContext msgCtx = context.getMessageContext(); 
-        return msgCtx;
-    }  
-}
+/*
+ * 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.sts;
+
+import com.sun.xml.ws.security.trust.sts.BaseSTSImpl;
+
+import javax.annotation.Resource;
+import javax.xml.transform.Source;
+import javax.xml.ws.Provider;
+import javax.xml.ws.Service;
+import javax.xml.ws.ServiceMode;
+import javax.xml.ws.WebServiceContext;
+import javax.xml.ws.WebServiceProvider;
+import javax.xml.ws.handler.MessageContext;
+
+@ServiceMode(value=Service.Mode.PAYLOAD)
+@WebServiceProvider(wsdlLocation="WEB-INF/wsdl/sts.wsdl")
+public class STSImpl extends BaseSTSImpl implements Provider<Source>{
+    @Resource
+    protected WebServiceContext context;
+    
+    protected MessageContext getMessageContext() {        
+        MessageContext msgCtx = context.getMessageContext(); 
+        return msgCtx;
+    }  
+}

Propchange: incubator/stonehenge/trunk/stocktrader/metro/active_sts/src/org/apache/stonehenge/stocktrader/sts/STSImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/stonehenge/trunk/stocktrader/metro/active_sts/src/org/apache/stonehenge/stocktrader/sts/UsernamePasswordValidator.java
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/active_sts/src/org/apache/stonehenge/stocktrader/sts/UsernamePasswordValidator.java?rev=958838&r1=958837&r2=958838&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/metro/active_sts/src/org/apache/stonehenge/stocktrader/sts/UsernamePasswordValidator.java (original)
+++ incubator/stonehenge/trunk/stocktrader/metro/active_sts/src/org/apache/stonehenge/stocktrader/sts/UsernamePasswordValidator.java Tue Jun 29 06:33:54 2010
@@ -1,44 +1,44 @@
-/*
- * 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.sts;
-
-import com.sun.xml.wss.impl.callback.PasswordValidationCallback;
-import org.apache.stonehenge.stocktrader.dal.CustomerDAO;
-import org.apache.stonehenge.stocktrader.dal.DAOFactory;
-import org.apache.stonehenge.stocktrader.dal.DAOException;
-import org.apache.stonehenge.stocktrader.CustomAccountProfileBean;
-import org.apache.stonehenge.stocktrader.CustomAccountBean;
-
-public class UsernamePasswordValidator implements PasswordValidationCallback.PasswordValidator {
-    public boolean validate(PasswordValidationCallback.Request request) throws
-            PasswordValidationCallback.PasswordValidationException {
-        PasswordValidationCallback.PlainTextPasswordRequest plainTextRequest =
-                (PasswordValidationCallback.PlainTextPasswordRequest) request;
-        try {
-            CustomerDAO user = DAOFactory.getFacotry().getCustomerDAO();
-            CustomAccountProfileBean profileBean = user.getAccountProfileData(plainTextRequest.getUsername());
-            if (profileBean != null && profileBean.getPassword().equals(plainTextRequest.getPassword())) {
-                return true;
-            }
-        } catch (DAOException e) {
-            e.printStackTrace();
-            return false;
-        }
-        return false;
-    }
-}
+/*
+ * 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.sts;
+
+import com.sun.xml.wss.impl.callback.PasswordValidationCallback;
+import org.apache.stonehenge.stocktrader.dal.CustomerDAO;
+import org.apache.stonehenge.stocktrader.dal.DAOFactory;
+import org.apache.stonehenge.stocktrader.dal.DAOException;
+import org.apache.stonehenge.stocktrader.CustomAccountProfileBean;
+import org.apache.stonehenge.stocktrader.CustomAccountBean;
+
+public class UsernamePasswordValidator implements PasswordValidationCallback.PasswordValidator {
+    public boolean validate(PasswordValidationCallback.Request request) throws
+            PasswordValidationCallback.PasswordValidationException {
+        PasswordValidationCallback.PlainTextPasswordRequest plainTextRequest =
+                (PasswordValidationCallback.PlainTextPasswordRequest) request;
+        try {
+            CustomerDAO user = DAOFactory.getFacotry().getCustomerDAO();
+            CustomAccountProfileBean profileBean = user.getAccountProfileData(plainTextRequest.getUsername());
+            if (profileBean != null && profileBean.getPassword().equals(plainTextRequest.getPassword())) {
+                return true;
+            }
+        } catch (DAOException e) {
+            e.printStackTrace();
+            return false;
+        }
+        return false;
+    }
+}

Propchange: incubator/stonehenge/trunk/stocktrader/metro/active_sts/src/org/apache/stonehenge/stocktrader/sts/UsernamePasswordValidator.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/stonehenge/trunk/stocktrader/metro/build.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/stonehenge/trunk/stocktrader/metro/business_service/build.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/stonehenge/trunk/stocktrader/metro/business_service/etc/sun-jaxws.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/stonehenge/trunk/stocktrader/metro/business_service/etc/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/BeanFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/services/TradeConfigServiceClient.java
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/services/TradeConfigServiceClient.java?rev=958838&r1=958837&r2=958838&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/services/TradeConfigServiceClient.java (original)
+++ incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/services/TradeConfigServiceClient.java Tue Jun 29 06:33:54 2010
@@ -1,88 +1,88 @@
-/*
- * 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.services;
-
-import org.apache.stonehenge.stocktrader.dal.ConfigServiceDAO;
-import org.apache.stonehenge.stocktrader.dal.ConfigServiceDaoFactory;
-import org.datacontract.schemas._2004._07.trade.BSConfigRequest;
-import org.datacontract.schemas._2004._07.trade.BSConfigResponse;
-import org.datacontract.schemas._2004._07.trade.ClientConfigRequest;
-import org.datacontract.schemas._2004._07.trade.ClientConfigResponse;
-import org.tempuri.ConfigService;
-import org.tempuri.ConfigServiceService;
-import traderconfighost.trade.GetBSConfig;
-import traderconfighost.trade.GetBSConfigResponse;
-import traderconfighost.trade.GetClientConfig;
-import traderconfighost.trade.GetClientConfigResponse;
-
-import javax.xml.ws.BindingProvider;
-
-public class TradeConfigServiceClient {
-
-    private static TradeConfigServiceClient self = null;
-    private static ConfigServiceService service = null;
-    private static ConfigServiceDaoFactory configServiceDaoFactory;
-    private static ConfigServiceDAO configServiceDAO;
-
-    public static TradeConfigServiceClient getInstance() {
-            configServiceDaoFactory = ConfigServiceDaoFactory.getFacotry();
-            configServiceDAO = configServiceDaoFactory.getConfigServiceDAO();
-            self = new TradeConfigServiceClient();
-        ((BindingProvider) service).getRequestContext()
-                .put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, configServiceDAO.getConfigService());
-        return self;
-    }
-
-    private TradeConfigServiceClient() {
-        ConfigService configService = new ConfigService();
-        service = configService.getBasicHttpBindingConfigServiceService();
-    }
-
-    public TradeOrderConfig getTradeOrderConfig() {
-        GetClientConfig getClientConfig = new GetClientConfig();
-        ClientConfigRequest clientconfigRequest = new ClientConfigRequest();
-        clientconfigRequest.setClientName("METRO_CLIENT");
-        getClientConfig.setClient(clientconfigRequest);
-        GetClientConfigResponse clientConfigResponse = service.getClientConfig(getClientConfig);
-        ClientConfigResponse clientresponse = clientConfigResponse.getGetClientConfigResult();
-        String bsName = clientresponse.getBSName();
-
-        GetBSConfig getBSConfig = new GetBSConfig();
-        BSConfigRequest configRequest = new BSConfigRequest();
-        configRequest.setBSName(bsName);
-        getBSConfig.setBs(configRequest);
-        GetBSConfigResponse getBSConfigResponse = service.getBSConfig(getBSConfig);
-        BSConfigResponse response = getBSConfigResponse.getGetBSConfigResult();
-
-        TradeOrderConfig config = new TradeOrderConfig();
-        config.setServiceName(response.getOPSName());
-        config.setEndpointURL(response.getOPS());
-        config.setSecure(response.isSec());
-        return config;
-    }
-
-//    public static void main(String arg[]) {
-//        TradeConfigServiceClient client = TradeConfigServiceClient.getInstance();
-//        TradeOrderConfig config = client.getTradeOrderConfig();
-//        String url = config.getEndpointURL();
-//
-//        assert url.equals("http://localhost:8091/order_processor/OrderProcessorSec");
-//
-//        System.out.println("connect successfully!!");
-//    }
-}
+/*
+ * 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.services;
+
+import org.apache.stonehenge.stocktrader.dal.ConfigServiceDAO;
+import org.apache.stonehenge.stocktrader.dal.ConfigServiceDaoFactory;
+import org.datacontract.schemas._2004._07.trade.BSConfigRequest;
+import org.datacontract.schemas._2004._07.trade.BSConfigResponse;
+import org.datacontract.schemas._2004._07.trade.ClientConfigRequest;
+import org.datacontract.schemas._2004._07.trade.ClientConfigResponse;
+import org.tempuri.ConfigService;
+import org.tempuri.ConfigServiceService;
+import traderconfighost.trade.GetBSConfig;
+import traderconfighost.trade.GetBSConfigResponse;
+import traderconfighost.trade.GetClientConfig;
+import traderconfighost.trade.GetClientConfigResponse;
+
+import javax.xml.ws.BindingProvider;
+
+public class TradeConfigServiceClient {
+
+    private static TradeConfigServiceClient self = null;
+    private static ConfigServiceService service = null;
+    private static ConfigServiceDaoFactory configServiceDaoFactory;
+    private static ConfigServiceDAO configServiceDAO;
+
+    public static TradeConfigServiceClient getInstance() {
+            configServiceDaoFactory = ConfigServiceDaoFactory.getFacotry();
+            configServiceDAO = configServiceDaoFactory.getConfigServiceDAO();
+            self = new TradeConfigServiceClient();
+        ((BindingProvider) service).getRequestContext()
+                .put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, configServiceDAO.getConfigService());
+        return self;
+    }
+
+    private TradeConfigServiceClient() {
+        ConfigService configService = new ConfigService();
+        service = configService.getBasicHttpBindingConfigServiceService();
+    }
+
+    public TradeOrderConfig getTradeOrderConfig() {
+        GetClientConfig getClientConfig = new GetClientConfig();
+        ClientConfigRequest clientconfigRequest = new ClientConfigRequest();
+        clientconfigRequest.setClientName("METRO_CLIENT");
+        getClientConfig.setClient(clientconfigRequest);
+        GetClientConfigResponse clientConfigResponse = service.getClientConfig(getClientConfig);
+        ClientConfigResponse clientresponse = clientConfigResponse.getGetClientConfigResult();
+        String bsName = clientresponse.getBSName();
+
+        GetBSConfig getBSConfig = new GetBSConfig();
+        BSConfigRequest configRequest = new BSConfigRequest();
+        configRequest.setBSName(bsName);
+        getBSConfig.setBs(configRequest);
+        GetBSConfigResponse getBSConfigResponse = service.getBSConfig(getBSConfig);
+        BSConfigResponse response = getBSConfigResponse.getGetBSConfigResult();
+
+        TradeOrderConfig config = new TradeOrderConfig();
+        config.setServiceName(response.getOPSName());
+        config.setEndpointURL(response.getOPS());
+        config.setSecure(response.isSec());
+        return config;
+    }
+
+//    public static void main(String arg[]) {
+//        TradeConfigServiceClient client = TradeConfigServiceClient.getInstance();
+//        TradeOrderConfig config = client.getTradeOrderConfig();
+//        String url = config.getEndpointURL();
+//
+//        assert url.equals("http://localhost:8091/order_processor/OrderProcessorSec");
+//
+//        System.out.println("connect successfully!!");
+//    }
+}

Propchange: incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/services/TradeConfigServiceClient.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/services/TradeOrderConfig.java
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/services/TradeOrderConfig.java?rev=958838&r1=958837&r2=958838&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/services/TradeOrderConfig.java (original)
+++ incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/services/TradeOrderConfig.java Tue Jun 29 06:33:54 2010
@@ -1,53 +1,53 @@
-/*
- * 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.services;
-
-public class TradeOrderConfig {
-    private String serviceName;
-
-    private String endpointURL;
-
-    private boolean secure;
-
-    public String getEndpointURL() {
-		return endpointURL;
-	}
-
-    public void setEndpointURL(String endpointURL) {
-		this.endpointURL = endpointURL;
-	}
-
-    public void setServiceName(String serviceName) {
-        this.serviceName = serviceName;
-    }
-
-    public boolean isSecure() {
-		return secure;
-	}
-	public void setSecure(boolean secure) {
-		this.secure = secure;
-	}
-
-    public boolean isMessageLevelSecurity() {
-        return serviceName.endsWith("OPSSEC");
-    }
-
-    public boolean isUsernameTokenOverTLS() {
-        return serviceName.endsWith("OPSSC");
-    }
-}
+/*
+ * 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.services;
+
+public class TradeOrderConfig {
+    private String serviceName;
+
+    private String endpointURL;
+
+    private boolean secure;
+
+    public String getEndpointURL() {
+		return endpointURL;
+	}
+
+    public void setEndpointURL(String endpointURL) {
+		this.endpointURL = endpointURL;
+	}
+
+    public void setServiceName(String serviceName) {
+        this.serviceName = serviceName;
+    }
+
+    public boolean isSecure() {
+		return secure;
+	}
+	public void setSecure(boolean secure) {
+		this.secure = secure;
+	}
+
+    public boolean isMessageLevelSecurity() {
+        return serviceName.endsWith("OPSSEC");
+    }
+
+    public boolean isUsernameTokenOverTLS() {
+        return serviceName.endsWith("OPSSC");
+    }
+}

Propchange: incubator/stonehenge/trunk/stocktrader/metro/business_service/src/org/apache/stonehenge/stocktrader/services/TradeOrderConfig.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message