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/07/09 03:37:58 UTC
svn commit: r792384 [4/4] - in
/incubator/stonehenge/trunk/stocktrader/dotnet: ./ business_service/
business_service/BusinessServiceConfigurationSettings/
business_service/BusinessServiceConsole/
business_service/BusinessServiceImplementation/ business...
Modified: incubator/stonehenge/trunk/stocktrader/dotnet/order_processor/OrderProcessorSolution.sln
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/dotnet/order_processor/OrderProcessorSolution.sln?rev=792384&r1=792383&r2=792384&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/dotnet/order_processor/OrderProcessorSolution.sln (original)
+++ incubator/stonehenge/trunk/stocktrader/dotnet/order_processor/OrderProcessorSolution.sln Thu Jul 9 03:37:55 2009
@@ -1,144 +1,114 @@

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OrderProcessorContract", "OrderProcessorContract\OrderProcessorContract.csproj", "{1AD6DBB4-CA83-460F-BDCD-45E1ECE318B4}"
- ProjectSection(ProjectDependencies) = postProject
- {382E6E1C-E430-4F6C-BC41-5D84A3798B02} = {382E6E1C-E430-4F6C-BC41-5D84A3798B02}
- EndProjectSection
-EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OrderProcessorConsoleHost", "OrderProcessorConsoleServiceHost\OrderProcessorConsoleHost.csproj", "{E0A01A0E-6EF9-4826-B1AE-51B281739AF2}"
- ProjectSection(ProjectDependencies) = postProject
- {382E6E1C-E430-4F6C-BC41-5D84A3798B02} = {382E6E1C-E430-4F6C-BC41-5D84A3798B02}
- EndProjectSection
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OrderProcessorContract", "OrderProcessorContract\OrderProcessorContract.csproj", "{1AD6DBB4-CA83-460F-BDCD-45E1ECE318B4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OrderProcessorImplementation", "OrderProcessorImplementation\OrderProcessorImplementation.csproj", "{657AD453-B00F-4F8A-9A94-25874320DE2C}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Utility", "..\common\StockTraderUtility\Utility.csproj", "{382E6E1C-E430-4F6C-BC41-5D84A3798B02}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BusinessServiceDataContract", "..\business_service\BusinessServiceDataContract\BusinessServiceDataContract.csproj", "{EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StockTraderDALFactory", "..\common\DALFactory\StockTraderDALFactory.csproj", "{F67C8D85-6DC0-45CD-A748-636E3881E2F5}"
- ProjectSection(ProjectDependencies) = postProject
- {382E6E1C-E430-4F6C-BC41-5D84A3798B02} = {382E6E1C-E430-4F6C-BC41-5D84A3798B02}
- EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StockTraderDALSQLServer", "..\common\DALSQLServer\StockTraderDALSQLServer.csproj", "{34C5AB90-E195-4BEE-A895-7AB1F81D552D}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Utility", "..\common\StockTraderUtility\Utility.csproj", "{382E6E1C-E430-4F6C-BC41-5D84A3798B02}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StockTraderIDAL", "..\common\IDAL\StockTraderIDAL.csproj", "{509EB16A-6586-4200-8323-32438C9B47DC}"
ProjectSection(ProjectDependencies) = postProject
- {382E6E1C-E430-4F6C-BC41-5D84A3798B02} = {382E6E1C-E430-4F6C-BC41-5D84A3798B02}
{EBB1604B-3F50-4A81-87C3-1AE4029EEEC6} = {EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}
- {509EB16A-6586-4200-8323-32438C9B47DC} = {509EB16A-6586-4200-8323-32438C9B47DC}
+ {82B5FA73-8A82-4DC0-B473-43B78543668B} = {82B5FA73-8A82-4DC0-B473-43B78543668B}
EndProjectSection
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StockTraderIDAL", "..\common\IDAL\StockTraderIDAL.csproj", "{509EB16A-6586-4200-8323-32438C9B47DC}"
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ConfigService", "ConfigService", "{0CAB3D28-18BC-4D7A-8CF8-CEAEB85D80B2}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BusinessServiceDataContract", "..\business_service\BusinessServiceDataContract\BusinessServiceDataContract.csproj", "{EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConfigClient", "..\common\ConfigClient\ConfigClient.csproj", "{D82DED61-E8CC-4530-A271-C74500ABBFA9}"
+ ProjectSection(ProjectDependencies) = postProject
+ {A4759510-6CE9-4692-B348-B8483BCD1447} = {A4759510-6CE9-4692-B348-B8483BCD1447}
+ EndProjectSection
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConfigServiceConfigurationSettings", "..\config_service\ConfigServiceConfigurationSettings\ConfigServiceConfigurationSettings.csproj", "{5A192168-838E-4DD1-A5E9-9EE191B941FE}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConfigServiceContract", "..\config_service\ConfigServiceContract\ConfigServiceContract.csproj", "{B0D086A8-B168-4DCD-8D2C-6F08CE159B5C}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BasicClient", "..\common\BasicClient\BasicClient.csproj", "{A4759510-6CE9-4692-B348-B8483BCD1447}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OrderProcessorServiceConfigurationSettings", "..\common\OrderProcessorServiceConfigurationSettings\OrderProcessorServiceConfigurationSettings.csproj", "{B28867CC-DD77-4F17-BA01-92625C235F6C}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConfigServiceDataContract", "..\config_service\ConfigServiceDataContract\ConfigServiceDataContract.csproj", "{82B5FA73-8A82-4DC0-B473-43B78543668B}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|.NET = Debug|.NET
Debug|Any CPU = Debug|Any CPU
- Debug|Mixed Platforms = Debug|Mixed Platforms
- Release|.NET = Release|.NET
Release|Any CPU = Release|Any CPU
- Release|Mixed Platforms = Release|Mixed Platforms
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {1AD6DBB4-CA83-460F-BDCD-45E1ECE318B4}.Debug|.NET.ActiveCfg = Debug|Any CPU
- {1AD6DBB4-CA83-460F-BDCD-45E1ECE318B4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {1AD6DBB4-CA83-460F-BDCD-45E1ECE318B4}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {1AD6DBB4-CA83-460F-BDCD-45E1ECE318B4}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {1AD6DBB4-CA83-460F-BDCD-45E1ECE318B4}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {1AD6DBB4-CA83-460F-BDCD-45E1ECE318B4}.Release|.NET.ActiveCfg = Release|Any CPU
- {1AD6DBB4-CA83-460F-BDCD-45E1ECE318B4}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {1AD6DBB4-CA83-460F-BDCD-45E1ECE318B4}.Release|Any CPU.Build.0 = Release|Any CPU
- {1AD6DBB4-CA83-460F-BDCD-45E1ECE318B4}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {1AD6DBB4-CA83-460F-BDCD-45E1ECE318B4}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {E0A01A0E-6EF9-4826-B1AE-51B281739AF2}.Debug|.NET.ActiveCfg = Debug|Any CPU
{E0A01A0E-6EF9-4826-B1AE-51B281739AF2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E0A01A0E-6EF9-4826-B1AE-51B281739AF2}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {E0A01A0E-6EF9-4826-B1AE-51B281739AF2}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {E0A01A0E-6EF9-4826-B1AE-51B281739AF2}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {E0A01A0E-6EF9-4826-B1AE-51B281739AF2}.Release|.NET.ActiveCfg = Release|Any CPU
{E0A01A0E-6EF9-4826-B1AE-51B281739AF2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E0A01A0E-6EF9-4826-B1AE-51B281739AF2}.Release|Any CPU.Build.0 = Release|Any CPU
- {E0A01A0E-6EF9-4826-B1AE-51B281739AF2}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {E0A01A0E-6EF9-4826-B1AE-51B281739AF2}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {657AD453-B00F-4F8A-9A94-25874320DE2C}.Debug|.NET.ActiveCfg = Debug|Any CPU
+ {1AD6DBB4-CA83-460F-BDCD-45E1ECE318B4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {1AD6DBB4-CA83-460F-BDCD-45E1ECE318B4}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {1AD6DBB4-CA83-460F-BDCD-45E1ECE318B4}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {1AD6DBB4-CA83-460F-BDCD-45E1ECE318B4}.Release|Any CPU.Build.0 = Release|Any CPU
{657AD453-B00F-4F8A-9A94-25874320DE2C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{657AD453-B00F-4F8A-9A94-25874320DE2C}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {657AD453-B00F-4F8A-9A94-25874320DE2C}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {657AD453-B00F-4F8A-9A94-25874320DE2C}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {657AD453-B00F-4F8A-9A94-25874320DE2C}.Release|.NET.ActiveCfg = Release|Any CPU
{657AD453-B00F-4F8A-9A94-25874320DE2C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{657AD453-B00F-4F8A-9A94-25874320DE2C}.Release|Any CPU.Build.0 = Release|Any CPU
- {657AD453-B00F-4F8A-9A94-25874320DE2C}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {657AD453-B00F-4F8A-9A94-25874320DE2C}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {382E6E1C-E430-4F6C-BC41-5D84A3798B02}.Debug|.NET.ActiveCfg = Debug|Any CPU
- {382E6E1C-E430-4F6C-BC41-5D84A3798B02}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {382E6E1C-E430-4F6C-BC41-5D84A3798B02}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {382E6E1C-E430-4F6C-BC41-5D84A3798B02}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {382E6E1C-E430-4F6C-BC41-5D84A3798B02}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {382E6E1C-E430-4F6C-BC41-5D84A3798B02}.Release|.NET.ActiveCfg = Release|Any CPU
- {382E6E1C-E430-4F6C-BC41-5D84A3798B02}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {382E6E1C-E430-4F6C-BC41-5D84A3798B02}.Release|Any CPU.Build.0 = Release|Any CPU
- {382E6E1C-E430-4F6C-BC41-5D84A3798B02}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {382E6E1C-E430-4F6C-BC41-5D84A3798B02}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {F67C8D85-6DC0-45CD-A748-636E3881E2F5}.Debug|.NET.ActiveCfg = Debug|Any CPU
+ {EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Release|Any CPU.Build.0 = Release|Any CPU
{F67C8D85-6DC0-45CD-A748-636E3881E2F5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F67C8D85-6DC0-45CD-A748-636E3881E2F5}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {F67C8D85-6DC0-45CD-A748-636E3881E2F5}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {F67C8D85-6DC0-45CD-A748-636E3881E2F5}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {F67C8D85-6DC0-45CD-A748-636E3881E2F5}.Release|.NET.ActiveCfg = Release|Any CPU
{F67C8D85-6DC0-45CD-A748-636E3881E2F5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F67C8D85-6DC0-45CD-A748-636E3881E2F5}.Release|Any CPU.Build.0 = Release|Any CPU
- {F67C8D85-6DC0-45CD-A748-636E3881E2F5}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {F67C8D85-6DC0-45CD-A748-636E3881E2F5}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {34C5AB90-E195-4BEE-A895-7AB1F81D552D}.Debug|.NET.ActiveCfg = Debug|Any CPU
{34C5AB90-E195-4BEE-A895-7AB1F81D552D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{34C5AB90-E195-4BEE-A895-7AB1F81D552D}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {34C5AB90-E195-4BEE-A895-7AB1F81D552D}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {34C5AB90-E195-4BEE-A895-7AB1F81D552D}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {34C5AB90-E195-4BEE-A895-7AB1F81D552D}.Release|.NET.ActiveCfg = Release|Any CPU
{34C5AB90-E195-4BEE-A895-7AB1F81D552D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{34C5AB90-E195-4BEE-A895-7AB1F81D552D}.Release|Any CPU.Build.0 = Release|Any CPU
- {34C5AB90-E195-4BEE-A895-7AB1F81D552D}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {34C5AB90-E195-4BEE-A895-7AB1F81D552D}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {509EB16A-6586-4200-8323-32438C9B47DC}.Debug|.NET.ActiveCfg = Debug|Any CPU
+ {382E6E1C-E430-4F6C-BC41-5D84A3798B02}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {382E6E1C-E430-4F6C-BC41-5D84A3798B02}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {382E6E1C-E430-4F6C-BC41-5D84A3798B02}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {382E6E1C-E430-4F6C-BC41-5D84A3798B02}.Release|Any CPU.Build.0 = Release|Any CPU
{509EB16A-6586-4200-8323-32438C9B47DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{509EB16A-6586-4200-8323-32438C9B47DC}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {509EB16A-6586-4200-8323-32438C9B47DC}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {509EB16A-6586-4200-8323-32438C9B47DC}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {509EB16A-6586-4200-8323-32438C9B47DC}.Release|.NET.ActiveCfg = Release|Any CPU
{509EB16A-6586-4200-8323-32438C9B47DC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{509EB16A-6586-4200-8323-32438C9B47DC}.Release|Any CPU.Build.0 = Release|Any CPU
- {509EB16A-6586-4200-8323-32438C9B47DC}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {509EB16A-6586-4200-8323-32438C9B47DC}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Debug|.NET.ActiveCfg = Debug|Any CPU
- {EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Release|.NET.ActiveCfg = Release|Any CPU
- {EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Release|Any CPU.Build.0 = Release|Any CPU
- {EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {B28867CC-DD77-4F17-BA01-92625C235F6C}.Debug|.NET.ActiveCfg = Debug|Any CPU
+ {D82DED61-E8CC-4530-A271-C74500ABBFA9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {D82DED61-E8CC-4530-A271-C74500ABBFA9}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {D82DED61-E8CC-4530-A271-C74500ABBFA9}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {D82DED61-E8CC-4530-A271-C74500ABBFA9}.Release|Any CPU.Build.0 = Release|Any CPU
+ {5A192168-838E-4DD1-A5E9-9EE191B941FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {5A192168-838E-4DD1-A5E9-9EE191B941FE}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {5A192168-838E-4DD1-A5E9-9EE191B941FE}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {5A192168-838E-4DD1-A5E9-9EE191B941FE}.Release|Any CPU.Build.0 = Release|Any CPU
+ {B0D086A8-B168-4DCD-8D2C-6F08CE159B5C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {B0D086A8-B168-4DCD-8D2C-6F08CE159B5C}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {B0D086A8-B168-4DCD-8D2C-6F08CE159B5C}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {B0D086A8-B168-4DCD-8D2C-6F08CE159B5C}.Release|Any CPU.Build.0 = Release|Any CPU
+ {A4759510-6CE9-4692-B348-B8483BCD1447}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A4759510-6CE9-4692-B348-B8483BCD1447}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A4759510-6CE9-4692-B348-B8483BCD1447}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A4759510-6CE9-4692-B348-B8483BCD1447}.Release|Any CPU.Build.0 = Release|Any CPU
{B28867CC-DD77-4F17-BA01-92625C235F6C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B28867CC-DD77-4F17-BA01-92625C235F6C}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {B28867CC-DD77-4F17-BA01-92625C235F6C}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {B28867CC-DD77-4F17-BA01-92625C235F6C}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {B28867CC-DD77-4F17-BA01-92625C235F6C}.Release|.NET.ActiveCfg = Release|Any CPU
{B28867CC-DD77-4F17-BA01-92625C235F6C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B28867CC-DD77-4F17-BA01-92625C235F6C}.Release|Any CPU.Build.0 = Release|Any CPU
- {B28867CC-DD77-4F17-BA01-92625C235F6C}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {B28867CC-DD77-4F17-BA01-92625C235F6C}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+ {82B5FA73-8A82-4DC0-B473-43B78543668B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {82B5FA73-8A82-4DC0-B473-43B78543668B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {82B5FA73-8A82-4DC0-B473-43B78543668B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {82B5FA73-8A82-4DC0-B473-43B78543668B}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
- GlobalSection(SubversionScc) = preSolution
- Svn-Managed = True
- Manager = AnkhSVN - Subversion Support for Visual Studio
+ GlobalSection(NestedProjects) = preSolution
+ {D82DED61-E8CC-4530-A271-C74500ABBFA9} = {0CAB3D28-18BC-4D7A-8CF8-CEAEB85D80B2}
+ {5A192168-838E-4DD1-A5E9-9EE191B941FE} = {0CAB3D28-18BC-4D7A-8CF8-CEAEB85D80B2}
+ {B0D086A8-B168-4DCD-8D2C-6F08CE159B5C} = {0CAB3D28-18BC-4D7A-8CF8-CEAEB85D80B2}
+ {A4759510-6CE9-4692-B348-B8483BCD1447} = {0CAB3D28-18BC-4D7A-8CF8-CEAEB85D80B2}
+ {82B5FA73-8A82-4DC0-B473-43B78543668B} = {0CAB3D28-18BC-4D7A-8CF8-CEAEB85D80B2}
EndGlobalSection
EndGlobal
Added: incubator/stonehenge/trunk/stocktrader/dotnet/setup_utilities/DataLoad/createdbconfig.sql
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/dotnet/setup_utilities/DataLoad/createdbconfig.sql?rev=792384&view=auto
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/dotnet/setup_utilities/DataLoad/createdbconfig.sql (added)
+++ incubator/stonehenge/trunk/stocktrader/dotnet/setup_utilities/DataLoad/createdbconfig.sql Thu Jul 9 03:37:55 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.
+ */
+SET ANSI_NULLS ON
+SET QUOTED_IDENTIFIER ON
+IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DBCONFIG]') AND type in (N'U'))
+ CREATE TABLE [dbo].[DBCONFIG](
+ [DBNAME][varchar](50) NOT NULL,
+ [HOSTNAME] [varchar](50) NOT NULL,
+ [PORT] [int] NOT NULL,
+ [ACTIVE] [varchar](1) NOT NULL,
+ CONSTRAINT [PK_DBCONFIG] PRIMARY KEY CLUSTERED
+ (
+ [DBNAME] ASC
+ )
+ ) ON [PRIMARY]
+
+IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[SERVICE]') AND type in (N'U'))
+ CREATE TABLE [dbo].[SERVICE](
+ [SERVICENAME] [varchar](50)NOT NULL,
+ [URL] [varchar](500) NOT NULL,
+ [SEC] [bit] NULL,
+ CONSTRAINT [PK_SERVICE] PRIMARY KEY CLUSTERED
+ (
+ [SERVICENAME] ASC
+ )
+ ) ON [PRIMARY]
+IF NOT EXISTS (SELECT * FROM sys.columns WHERE object_id = OBJECT_ID(N'[dbo].[SERVICE]') AND name in (N'SEC'))
+ ALTER TABLE [dbo].[SERVICE] ADD [SEC] [bit] NULL
+
+IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[CLIENTTOBS]') AND type in (N'U'))
+ CREATE TABLE [dbo].[CLIENTTOBS](
+ [CLIENT] [varchar](50) NOT NULL,
+ [BS] [varchar](50) NOT NULL,
+ CONSTRAINT [PK_CLIENTTOBS] PRIMARY KEY CLUSTERED
+ (
+ [CLIENT] ASC
+ )
+ ) ON [PRIMARY]
+
+IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[BSTOOPS]') AND type in (N'U'))
+ CREATE TABLE [dbo].[BSTOOPS](
+ [BS] [varchar](50) NOT NULL,
+ [OPS] [varchar](50) NOT NULL,
+ CONSTRAINT [PK_BSTOOPS] PRIMARY KEY CLUSTERED
+ (
+ [BS] ASC
+ )
+ ) ON [PRIMARY]
+SET ANSI_NULLS OFF
Added: incubator/stonehenge/trunk/stocktrader/dotnet/setup_utilities/DataLoad/insertdbconfig.sql
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/dotnet/setup_utilities/DataLoad/insertdbconfig.sql?rev=792384&view=auto
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/dotnet/setup_utilities/DataLoad/insertdbconfig.sql (added)
+++ incubator/stonehenge/trunk/stocktrader/dotnet/setup_utilities/DataLoad/insertdbconfig.sql Thu Jul 9 03:37:55 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.
+ */
+INSERT INTO [StockTraderDB].[dbo].[SERVICE]([SERVICENAME],[URL],[SEC])
+ VALUES ('JAVA_BS','http://localhost:9763/services/TradeServiceWsas', 'False');
+INSERT INTO [StockTraderDB].[dbo].[SERVICE]([SERVICENAME],[URL],[SEC])
+ VALUES ('JAVA_OPS','http://localhost:9763/services/OrderProcessor', 'False');
+INSERT INTO [StockTraderDB].[dbo].[SERVICE]([SERVICENAME],[URL], [SEC])
+ VALUES ('JAVA_OPSSEC','http://localhost:9763/services/OrderProcessorMsec', 'True');
+INSERT INTO [StockTraderDB].[dbo].[SERVICE]([SERVICENAME],[URL], [SEC])
+ VALUES ('PHP_BS','http://localhost:8080/php_stocktrader/business_service/business_svc.php', 'False');
+INSERT INTO [StockTraderDB].[dbo].[SERVICE]([SERVICENAME],[URL], [SEC])
+ VALUES ('PHP_OPS','http://localhost:8080/php_stocktrader/order_processor/order_processor_svc.php', 'False');
+INSERT INTO [StockTraderDB].[dbo].[SERVICE]([SERVICENAME],[URL], [SEC])
+ VALUES ('PHP_OPSSEC','http://localhost:8080/php_stocktrader/order_processor/order_processor_svc_msec.php', 'True');
+INSERT INTO [StockTraderDB].[dbo].[SERVICE]([SERVICENAME],[URL], [SEC])
+ VALUES ('RUBY_OPS','http://localhost:3005/OrderService', 'False');
+INSERT INTO [StockTraderDB].[dbo].[SERVICE]([SERVICENAME],[URL], [SEC])
+ VALUES ('RUBY_OPSSEC','http://localhost:3005/OrderServiceMsec', 'True');
+INSERT INTO [StockTraderDB].[dbo].[SERVICE]([SERVICENAME],[URL], [SEC])
+ VALUES ('DOTNET_BS','http://localhost:9000/TradeBusinessService', 'False');
+INSERT INTO [StockTraderDB].[dbo].[SERVICE]([SERVICENAME],[URL], [SEC])
+ VALUES ('DOTNET_OPS','http://localhost:8000/TradeOrderProcessor', 'False');
+INSERT INTO [StockTraderDB].[dbo].[SERVICE]([SERVICENAME],[URL], [SEC])
+ VALUES ('DOTNET_OPSSEC','http://localhost:8000/TradeOrderProcessor/sec', 'True');
+INSERT INTO [StockTraderDB].[dbo].[DBCONFIG]([DBNAME],[HOSTNAME],[PORT],[ACTIVE])
+ VALUES ('MSSQL', '127.0.0.1', 1433, 'Y');
+INSERT INTO [StockTraderDB].[dbo].[CLIENTTOBS]([CLIENT],[BS])
+ VALUES ('DOTNET_CLIENT','DOTNET_BS');
+INSERT INTO [StockTraderDB].[dbo].[CLIENTTOBS]([CLIENT],[BS])
+ VALUES ('PHP_CLIENT','PHP_BS');
+INSERT INTO [StockTraderDB].[dbo].[BSTOOPS]([BS],[OPS])
+ VALUES ('DOTNET_BS', 'DOTNET_OPS');
+INSERT INTO [StockTraderDB].[dbo].[BSTOOPS]([BS],[OPS])
+ VALUES ('PHP_BS', 'PHP_OPS');
+INSERT INTO [StockTraderDB].[dbo].[BSTOOPS]([BS],[OPS])
+ VALUES ('JAVA_BS', 'JAVA_OPS');
+
+
Modified: incubator/stonehenge/trunk/stocktrader/dotnet/setup_utilities/SetupActions/SetupAction.cs
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/dotnet/setup_utilities/SetupActions/SetupAction.cs?rev=792384&r1=792383&r2=792384&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/dotnet/setup_utilities/SetupActions/SetupAction.cs (original)
+++ incubator/stonehenge/trunk/stocktrader/dotnet/setup_utilities/SetupActions/SetupAction.cs Thu Jul 9 03:37:55 2009
@@ -63,6 +63,8 @@
public static readonly string tradepassword = "yyy";
public static readonly string TRADEDB = "StockTraderDB";
public const string TRADEDB_CREATE_FILE = "createdb.sql";
+ public const string TRADEDB_CREATE_DBCONFIG = "createdbconfig.sql";
+ public const string TRADEDB_INSERT_DBCONFIG = "insertdbconfig.sql";
string GetConnectionString(string databaseName)
{
@@ -95,12 +97,47 @@
createDatabase(installPath, TRADEDB_CREATE_FILE, TRADEDB, tradeuser, tradepassword);
createLoadXmlStockTraderDBProcs(installPath, TRADEDB);
loadStockTraderDB(installPath, TRADEDB);
+ addDBConfig(installPath, TRADEDB, TRADEDB_CREATE_DBCONFIG, TRADEDB_INSERT_DBCONFIG);
}
catch (Exception e)
{
throw new Exception("MSG_DBFAIL " + e.Message);
}
}
+
+ /// <summary>
+ /// Creates the tables needed for the database configuration system
+ /// i.e. SERVICE, CLIENTTOBS, BSTOOPS, DBCONFIG
+ /// </summary>
+ /// <param name="installPath"></param>
+ /// <param name="databaseName"></param>
+ private void addDBConfig(string installPath, string databaseName, string createdbconfigfilename, string insertdbconfigfilename)
+ {
+ SQL_CONN = GetConnectionString(databaseName);
+ SqlConnection sqlConnection = new SqlConnection(SQL_CONN);
+ sqlConnection.Open();
+
+ //creates the necessary tables: CLIENTTOBS, BSTOOPS, SERVICE, DBCONFIG
+ System.IO.StreamReader file = new System.IO.StreamReader(installPath + @"setup_utilities\DATALOAD\" + createdbconfigfilename);
+ string createCommand = file.ReadToEnd();
+ file.Close();
+ SqlCommand sqlCommand = new SqlCommand(createCommand, sqlConnection);
+ sqlCommand.CommandType = CommandType.Text;
+ sqlCommand.ExecuteNonQuery();
+ Console.Write(".");
+
+ //inserts the config info into these tables
+ file = new System.IO.StreamReader(installPath + @"setup_utilities\DATALOAD\" + insertdbconfigfilename);
+ createCommand = file.ReadToEnd();
+ file.Close();
+ sqlCommand = new SqlCommand(createCommand, sqlConnection);
+ sqlCommand.CommandType = CommandType.Text;
+ sqlCommand.ExecuteNonQuery();
+ Console.Write(".");
+
+ sqlConnection.Close();
+ return;
+ }
/// <summary>
/// Similar to createLoadXmlRepositoryProcs, except for StockTraderDB tables.
Modified: incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/StockTraderWebAppSolution.sln
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/StockTraderWebAppSolution.sln?rev=792384&r1=792383&r2=792384&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/StockTraderWebAppSolution.sln (original)
+++ incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/StockTraderWebAppSolution.sln Thu Jul 9 03:37:55 2009
@@ -2,6 +2,9 @@
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StockTraderWebApplicationServiceClient", "StockTraderWebApplicationClients\StockTraderWebApplicationServiceClient.csproj", "{3A1AB418-60B7-44BF-AE17-E74F425CD5C9}"
+ ProjectSection(ProjectDependencies) = postProject
+ {5A192168-838E-4DD1-A5E9-9EE191B941FE} = {5A192168-838E-4DD1-A5E9-9EE191B941FE}
+ EndProjectSection
EndProject
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "Trade", "Trade\", "{7550FE25-72BF-4059-8786-08741D8E7154}"
ProjectSection(WebsiteProperties) = preProject
@@ -10,7 +13,7 @@
SccLocalPath = ""
SccProvider = ""
TargetFramework = "3.5"
- ProjectReferences = "{97F8A696-9918-4DC4-8D6E-9E574B9A4059}|Trade.StockTraderWebApplicationModelClasses.dll;{3A1AB418-60B7-44BF-AE17-E74F425CD5C9}|Trade.StockTraderWebApplicationServiceClient.dll;{D8E1ECD5-2D86-4994-A37B-BF4D24334A2E}|Trade.StockTraderWebApplicationSettings.dll;{382E6E1C-E430-4F6C-BC41-5D84A3798B02}|Trade.Utility.dll;{A4759510-6CE9-4692-B348-B8483BCD1447}|BasicClient.dll;{36FA3564-9AF5-496A-805B-6ED262CAAE2B}|Trade.BusinessServiceContract.dll;{EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}|Trade.BusinessServiceDataContract.dll;"
+ ProjectReferences = "{97F8A696-9918-4DC4-8D6E-9E574B9A4059}|Trade.StockTraderWebApplicationModelClasses.dll;{3A1AB418-60B7-44BF-AE17-E74F425CD5C9}|Trade.StockTraderWebApplicationServiceClient.dll;{D8E1ECD5-2D86-4994-A37B-BF4D24334A2E}|Trade.StockTraderWebApplicationSettings.dll;{382E6E1C-E430-4F6C-BC41-5D84A3798B02}|Trade.Utility.dll;{5A192168-838E-4DD1-A5E9-9EE191B941FE}|Trade.ConfigServiceConfigurationSettings.dll;{B0D086A8-B168-4DCD-8D2C-6F08CE159B5C}|Trade.ConfigServiceContract.dll;{82B5FA73-8A82-4DC0-B473-43B78543668B}|Trade.ConfigServiceDataContract.dll;{D82DED61-E8CC-4530-A271-C74500ABBFA9}|Trade.ConfigClient.dll;{A4759510-6CE9-4692-B348-B8483BCD1447}|BasicClient.dll;{36FA3564-9AF5-496A-805B-6ED262CAAE2B}|Trade.BusinessServiceContract.dll;{EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}|Trade.BusinessServiceDataContract.dll;"
Debug.AspNetCompiler.VirtualPath = "/Trade"
Debug.AspNetCompiler.PhysicalPath = "Trade\"
Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\Trade\"
@@ -25,20 +28,28 @@
Release.AspNetCompiler.ForceOverwrite = "true"
Release.AspNetCompiler.FixedNames = "false"
Release.AspNetCompiler.Debug = "False"
- VWDPort = "52256"
+ VWDPort = "52419"
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StockTraderWebApplicationModelClasses", "StockTraderWebApplicationUIModelClasses\StockTraderWebApplicationModelClasses.csproj", "{97F8A696-9918-4DC4-8D6E-9E574B9A4059}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BasicClient", "..\common\BasicClient\BasicClient.csproj", "{A4759510-6CE9-4692-B348-B8483BCD1447}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Utility", "..\common\StockTraderUtility\Utility.csproj", "{382E6E1C-E430-4F6C-BC41-5D84A3798B02}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BusinessServiceContract", "..\business_service\BusinessServiceContract\BusinessServiceContract.csproj", "{36FA3564-9AF5-496A-805B-6ED262CAAE2B}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StockTraderWebApplicationSettings", "..\common\ServiceConfigurationSettings\StockTraderWebApplicationSettings.csproj", "{D8E1ECD5-2D86-4994-A37B-BF4D24334A2E}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BusinessServiceDataContract", "..\business_service\BusinessServiceDataContract\BusinessServiceDataContract.csproj", "{EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConfigServiceDataContract", "..\config_service\ConfigServiceDataContract\ConfigServiceDataContract.csproj", "{82B5FA73-8A82-4DC0-B473-43B78543668B}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Utility", "..\common\StockTraderUtility\Utility.csproj", "{382E6E1C-E430-4F6C-BC41-5D84A3798B02}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConfigServiceContract", "..\config_service\ConfigServiceContract\ConfigServiceContract.csproj", "{B0D086A8-B168-4DCD-8D2C-6F08CE159B5C}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StockTraderWebApplicationSettings", "..\common\ServiceConfigurationSettings\StockTraderWebApplicationSettings.csproj", "{D8E1ECD5-2D86-4994-A37B-BF4D24334A2E}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConfigServiceConfigurationSettings", "..\config_service\ConfigServiceConfigurationSettings\ConfigServiceConfigurationSettings.csproj", "{5A192168-838E-4DD1-A5E9-9EE191B941FE}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConfigClient", "..\common\ConfigClient\ConfigClient.csproj", "{D82DED61-E8CC-4530-A271-C74500ABBFA9}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BasicClient", "..\common\BasicClient\BasicClient.csproj", "{A4759510-6CE9-4692-B348-B8483BCD1447}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BusinessServiceDataContract", "..\business_service\BusinessServiceDataContract\BusinessServiceDataContract.csproj", "{EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BusinessServiceContract", "..\business_service\BusinessServiceContract\BusinessServiceContract.csproj", "{36FA3564-9AF5-496A-805B-6ED262CAAE2B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -80,36 +91,6 @@
{97F8A696-9918-4DC4-8D6E-9E574B9A4059}.Release|Any CPU.Build.0 = Release|Any CPU
{97F8A696-9918-4DC4-8D6E-9E574B9A4059}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{97F8A696-9918-4DC4-8D6E-9E574B9A4059}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {A4759510-6CE9-4692-B348-B8483BCD1447}.Debug|.NET.ActiveCfg = Debug|Any CPU
- {A4759510-6CE9-4692-B348-B8483BCD1447}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {A4759510-6CE9-4692-B348-B8483BCD1447}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {A4759510-6CE9-4692-B348-B8483BCD1447}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {A4759510-6CE9-4692-B348-B8483BCD1447}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {A4759510-6CE9-4692-B348-B8483BCD1447}.Release|.NET.ActiveCfg = Release|Any CPU
- {A4759510-6CE9-4692-B348-B8483BCD1447}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {A4759510-6CE9-4692-B348-B8483BCD1447}.Release|Any CPU.Build.0 = Release|Any CPU
- {A4759510-6CE9-4692-B348-B8483BCD1447}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {A4759510-6CE9-4692-B348-B8483BCD1447}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {36FA3564-9AF5-496A-805B-6ED262CAAE2B}.Debug|.NET.ActiveCfg = Debug|Any CPU
- {36FA3564-9AF5-496A-805B-6ED262CAAE2B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {36FA3564-9AF5-496A-805B-6ED262CAAE2B}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {36FA3564-9AF5-496A-805B-6ED262CAAE2B}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {36FA3564-9AF5-496A-805B-6ED262CAAE2B}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {36FA3564-9AF5-496A-805B-6ED262CAAE2B}.Release|.NET.ActiveCfg = Release|Any CPU
- {36FA3564-9AF5-496A-805B-6ED262CAAE2B}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {36FA3564-9AF5-496A-805B-6ED262CAAE2B}.Release|Any CPU.Build.0 = Release|Any CPU
- {36FA3564-9AF5-496A-805B-6ED262CAAE2B}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {36FA3564-9AF5-496A-805B-6ED262CAAE2B}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Debug|.NET.ActiveCfg = Debug|Any CPU
- {EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Release|.NET.ActiveCfg = Release|Any CPU
- {EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Release|Any CPU.Build.0 = Release|Any CPU
- {EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{382E6E1C-E430-4F6C-BC41-5D84A3798B02}.Debug|.NET.ActiveCfg = Debug|Any CPU
{382E6E1C-E430-4F6C-BC41-5D84A3798B02}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{382E6E1C-E430-4F6C-BC41-5D84A3798B02}.Debug|Any CPU.Build.0 = Debug|Any CPU
@@ -130,8 +111,82 @@
{D8E1ECD5-2D86-4994-A37B-BF4D24334A2E}.Release|Any CPU.Build.0 = Release|Any CPU
{D8E1ECD5-2D86-4994-A37B-BF4D24334A2E}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{D8E1ECD5-2D86-4994-A37B-BF4D24334A2E}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+ {82B5FA73-8A82-4DC0-B473-43B78543668B}.Debug|.NET.ActiveCfg = Debug|Any CPU
+ {82B5FA73-8A82-4DC0-B473-43B78543668B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {82B5FA73-8A82-4DC0-B473-43B78543668B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {82B5FA73-8A82-4DC0-B473-43B78543668B}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
+ {82B5FA73-8A82-4DC0-B473-43B78543668B}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+ {82B5FA73-8A82-4DC0-B473-43B78543668B}.Release|.NET.ActiveCfg = Release|Any CPU
+ {82B5FA73-8A82-4DC0-B473-43B78543668B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {82B5FA73-8A82-4DC0-B473-43B78543668B}.Release|Any CPU.Build.0 = Release|Any CPU
+ {82B5FA73-8A82-4DC0-B473-43B78543668B}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
+ {82B5FA73-8A82-4DC0-B473-43B78543668B}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+ {B0D086A8-B168-4DCD-8D2C-6F08CE159B5C}.Debug|.NET.ActiveCfg = Debug|Any CPU
+ {B0D086A8-B168-4DCD-8D2C-6F08CE159B5C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {B0D086A8-B168-4DCD-8D2C-6F08CE159B5C}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {B0D086A8-B168-4DCD-8D2C-6F08CE159B5C}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
+ {B0D086A8-B168-4DCD-8D2C-6F08CE159B5C}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+ {B0D086A8-B168-4DCD-8D2C-6F08CE159B5C}.Release|.NET.ActiveCfg = Release|Any CPU
+ {B0D086A8-B168-4DCD-8D2C-6F08CE159B5C}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {B0D086A8-B168-4DCD-8D2C-6F08CE159B5C}.Release|Any CPU.Build.0 = Release|Any CPU
+ {B0D086A8-B168-4DCD-8D2C-6F08CE159B5C}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
+ {B0D086A8-B168-4DCD-8D2C-6F08CE159B5C}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+ {5A192168-838E-4DD1-A5E9-9EE191B941FE}.Debug|.NET.ActiveCfg = Debug|Any CPU
+ {5A192168-838E-4DD1-A5E9-9EE191B941FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {5A192168-838E-4DD1-A5E9-9EE191B941FE}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {5A192168-838E-4DD1-A5E9-9EE191B941FE}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
+ {5A192168-838E-4DD1-A5E9-9EE191B941FE}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+ {5A192168-838E-4DD1-A5E9-9EE191B941FE}.Release|.NET.ActiveCfg = Release|Any CPU
+ {5A192168-838E-4DD1-A5E9-9EE191B941FE}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {5A192168-838E-4DD1-A5E9-9EE191B941FE}.Release|Any CPU.Build.0 = Release|Any CPU
+ {5A192168-838E-4DD1-A5E9-9EE191B941FE}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
+ {5A192168-838E-4DD1-A5E9-9EE191B941FE}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+ {D82DED61-E8CC-4530-A271-C74500ABBFA9}.Debug|.NET.ActiveCfg = Debug|Any CPU
+ {D82DED61-E8CC-4530-A271-C74500ABBFA9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {D82DED61-E8CC-4530-A271-C74500ABBFA9}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {D82DED61-E8CC-4530-A271-C74500ABBFA9}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
+ {D82DED61-E8CC-4530-A271-C74500ABBFA9}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+ {D82DED61-E8CC-4530-A271-C74500ABBFA9}.Release|.NET.ActiveCfg = Release|Any CPU
+ {D82DED61-E8CC-4530-A271-C74500ABBFA9}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {D82DED61-E8CC-4530-A271-C74500ABBFA9}.Release|Any CPU.Build.0 = Release|Any CPU
+ {D82DED61-E8CC-4530-A271-C74500ABBFA9}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
+ {D82DED61-E8CC-4530-A271-C74500ABBFA9}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+ {A4759510-6CE9-4692-B348-B8483BCD1447}.Debug|.NET.ActiveCfg = Debug|Any CPU
+ {A4759510-6CE9-4692-B348-B8483BCD1447}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A4759510-6CE9-4692-B348-B8483BCD1447}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A4759510-6CE9-4692-B348-B8483BCD1447}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
+ {A4759510-6CE9-4692-B348-B8483BCD1447}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+ {A4759510-6CE9-4692-B348-B8483BCD1447}.Release|.NET.ActiveCfg = Release|Any CPU
+ {A4759510-6CE9-4692-B348-B8483BCD1447}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A4759510-6CE9-4692-B348-B8483BCD1447}.Release|Any CPU.Build.0 = Release|Any CPU
+ {A4759510-6CE9-4692-B348-B8483BCD1447}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
+ {A4759510-6CE9-4692-B348-B8483BCD1447}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+ {EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Debug|.NET.ActiveCfg = Debug|Any CPU
+ {EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
+ {EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+ {EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Release|.NET.ActiveCfg = Release|Any CPU
+ {EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Release|Any CPU.Build.0 = Release|Any CPU
+ {EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
+ {EBB1604B-3F50-4A81-87C3-1AE4029EEEC6}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+ {36FA3564-9AF5-496A-805B-6ED262CAAE2B}.Debug|.NET.ActiveCfg = Debug|Any CPU
+ {36FA3564-9AF5-496A-805B-6ED262CAAE2B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {36FA3564-9AF5-496A-805B-6ED262CAAE2B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {36FA3564-9AF5-496A-805B-6ED262CAAE2B}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
+ {36FA3564-9AF5-496A-805B-6ED262CAAE2B}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+ {36FA3564-9AF5-496A-805B-6ED262CAAE2B}.Release|.NET.ActiveCfg = Release|Any CPU
+ {36FA3564-9AF5-496A-805B-6ED262CAAE2B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {36FA3564-9AF5-496A-805B-6ED262CAAE2B}.Release|Any CPU.Build.0 = Release|Any CPU
+ {36FA3564-9AF5-496A-805B-6ED262CAAE2B}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
+ {36FA3564-9AF5-496A-805B-6ED262CAAE2B}.Release|Mixed Platforms.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
+ GlobalSection(SubversionScc) = preSolution
+ Svn-Managed = True
+ Manager = AnkhSVN - Subversion Support for Visual Studio
+ EndGlobalSection
EndGlobal
Modified: incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/StockTraderWebApplicationClients/BusinessServiceClient.cs
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/StockTraderWebApplicationClients/BusinessServiceClient.cs?rev=792384&r1=792383&r2=792384&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/StockTraderWebApplicationClients/BusinessServiceClient.cs (original)
+++ incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/StockTraderWebApplicationClients/BusinessServiceClient.cs Thu Jul 9 03:37:55 2009
@@ -38,6 +38,9 @@
using Trade.StockTraderWebApplicationSettings;
using Trade.Client;
using Trade.Utility;
+using Trade.ConfigClient;
+using Trade.ConfigServiceContract;
+using Trade.ConfigServiceDataContract;
namespace Trade.StockTraderWebApplicationServiceClient
@@ -56,32 +59,53 @@
public BusinessServiceClient()
{
+ //Clears the cache of the client so that changes in the database configuration can
+ //be recognized without restarts
+ Initialize();
+
string endpointConfigName = null;
-
- switch (Settings.interfaceMode)
+
+
+ //Using the database configuration system - this BusinessServiceClient is created based on the CLIENTTOBS
+ //Configuration Settings specified in the database i.e. the row containing DOTNET_CLIENT
+ var configClient = new ConfigServiceClient();
+ var clientRequest = new ClientConfigRequest();
+ clientRequest.ClientName = "DOTNET_CLIENT";
+ var clientConfig = configClient.GetClientConfig(clientRequest);
+
+ //In case the client cannot be properly configured from the database, look up the default ACCESSMODE from the
+ //App.config file
+ if (clientConfig == null)
+ {
+ throw new Exception(StockTraderUtility.EXCEPTION_MESSAGE_BAD_CONFIG);
+ }
+
+ //If configuration information was properly received from the database then choose the appropriate business
+ //service based on the info in the CLIENTTOBS table i.e. the row with DOTNET_CLIENT
+ switch (clientConfig.BSName)
{
- case StockTraderUtility.ACCESS_DotNet_Http_WcfService:
+ case StockTraderUtility.DOTNET_BS:
{
endpointConfigName = Settings.BSL_DOTNET_ENDPOINT_CONFIG_HTTP;
bslclient = new Client.Client(typeof(ITradeServices), endpointConfigName);
break;
}
- case StockTraderUtility.ACCESS_DotNet_WsHttp_WcfService:
+ case StockTraderUtility.DOTNET_BSSEC:
{
endpointConfigName = Settings.BSL_DOTNET_ENDPOINT_CONFIG_WSHTTP;
- bslclient = new Client.Client(typeof(ITradeServices), endpointConfigName,Settings.BSL_USERID,Settings.BSL_PASSWORD);
+ bslclient = new Client.Client(typeof(ITradeServices), endpointConfigName, Settings.BSL_USERID, Settings.BSL_PASSWORD);
break;
}
- case StockTraderUtility.ACCESS_PHP_Http_WebService:
+ case StockTraderUtility.PHP_BS:
{
endpointConfigName = Settings.BSL_PHP_ENDPOINT_CONFIG_HTTP;
bslclient = new Client.Client(typeof(ITradeServices), endpointConfigName, Settings.BSL_USERID, Settings.BSL_PASSWORD);
break;
}
-
- case StockTraderUtility.ACCESS_WSAS_Http_WebService:
+
+ case StockTraderUtility.JAVA_BS:
{
endpointConfigName = Settings.BSL_WSAS_ENDPOINT_CONFIG_HTTP;
bslclient = new Client.Client(typeof(ITradeServices), endpointConfigName, Settings.BSL_USERID, Settings.BSL_PASSWORD);
@@ -90,12 +114,14 @@
default:
{
- throw new Exception(StockTraderUtility.EXCEPTION_MESSAGE_INVALID_ACCESSMODE_CONFIG);
+ throw new Exception(string.Format(StockTraderUtility.EXCEPTION_MESSAGE_BAD_CONFIG, clientRequest.ClientName));
+
}
}
}
+
public ITradeServices Channel
{
get
@@ -181,6 +207,7 @@
{
try
{
+
return this.Channel.getAccountProfileData(userID);
}
catch
@@ -198,6 +225,7 @@
{
try
{
+
return this.Channel.updateAccountProfile(profileData);
}
catch
@@ -215,6 +243,7 @@
{
try
{
+
this.Channel.logout(userID);
}
catch
@@ -235,6 +264,7 @@
{
try
{
+
return this.Channel.buy(userID, symbol, quantity, orderProcessingMode);
}
catch
@@ -254,6 +284,7 @@
{
try
{
+
return this.Channel.sell(userID, holdingID, orderProcessingMode);
}
catch
@@ -271,6 +302,7 @@
{
try
{
+
return this.Channel.getHoldings(userID);
}
catch
@@ -294,6 +326,7 @@
{
try
{
+
return this.Channel.register(userID, password, fullname, address, email, creditcard, openBalance);
}
catch
@@ -311,6 +344,7 @@
{
try
{
+
return this.Channel.getClosedOrders(userID);
}
catch
@@ -327,6 +361,7 @@
{
try
{
+
return this.Channel.getMarketSummary();
}
catch
@@ -344,6 +379,7 @@
{
try
{
+
return this.Channel.getQuote(symbol);
}
catch
@@ -362,6 +398,7 @@
{
try
{
+
return this.Channel.getHolding(userID, holdingID);
}
catch
@@ -379,6 +416,7 @@
{
try
{
+
return this.Channel.getTopOrders(userID);
}
catch
@@ -398,6 +436,7 @@
{
try
{
+
return this.Channel.sellEnhanced(userID, holdingID, quantity);
}
catch
@@ -414,6 +453,7 @@
{
try
{
+
this.Channel.isOnline();
return;
}
@@ -423,5 +463,14 @@
throw;
}
}
+
+ /// <summary>
+ /// A Static method that clears the cache of the Client Service
+ /// </summary>
+ public static void Initialize()
+ {
+ Client.Client.ClearCache();
+ }
+
}
}
Modified: incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/StockTraderWebApplicationClients/StockTraderWebApplicationServiceClient.csproj
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/StockTraderWebApplicationClients/StockTraderWebApplicationServiceClient.csproj?rev=792384&r1=792383&r2=792384&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/StockTraderWebApplicationClients/StockTraderWebApplicationServiceClient.csproj (original)
+++ incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/StockTraderWebApplicationClients/StockTraderWebApplicationServiceClient.csproj Thu Jul 9 03:37:55 2009
@@ -98,6 +98,10 @@
<Project>{A4759510-6CE9-4692-B348-B8483BCD1447}</Project>
<Name>BasicClient</Name>
</ProjectReference>
+ <ProjectReference Include="..\..\common\ConfigClient\ConfigClient.csproj">
+ <Project>{D82DED61-E8CC-4530-A271-C74500ABBFA9}</Project>
+ <Name>ConfigClient</Name>
+ </ProjectReference>
<ProjectReference Include="..\..\common\ServiceConfigurationSettings\StockTraderWebApplicationSettings.csproj">
<Project>{D8E1ECD5-2D86-4994-A37B-BF4D24334A2E}</Project>
<Name>StockTraderWebApplicationSettings</Name>
@@ -106,6 +110,14 @@
<Project>{382E6E1C-E430-4F6C-BC41-5D84A3798B02}</Project>
<Name>Utility</Name>
</ProjectReference>
+ <ProjectReference Include="..\..\config_service\ConfigServiceContract\ConfigServiceContract.csproj">
+ <Project>{B0D086A8-B168-4DCD-8D2C-6F08CE159B5C}</Project>
+ <Name>ConfigServiceContract</Name>
+ </ProjectReference>
+ <ProjectReference Include="..\..\config_service\ConfigServiceDataContract\ConfigServiceDataContract.csproj">
+ <Project>{82B5FA73-8A82-4DC0-B473-43B78543668B}</Project>
+ <Name>ConfigServiceDataContract</Name>
+ </ProjectReference>
<ProjectReference Include="..\StockTraderWebApplicationUIModelClasses\StockTraderWebApplicationModelClasses.csproj">
<Project>{97F8A696-9918-4DC4-8D6E-9E574B9A4059}</Project>
<Name>StockTraderWebApplicationModelClasses</Name>
Added: incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/Trade/Configuration.aspx
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/Trade/Configuration.aspx?rev=792384&view=auto
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/Trade/Configuration.aspx (added)
+++ incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/Trade/Configuration.aspx Thu Jul 9 03:37:55 2009
@@ -0,0 +1,97 @@
+<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
+ CodeFile="Configuration.aspx.cs" Inherits="Trade.Web.Configuration" %>
+<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
+ <% /*
+ 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.
+*/ %>
+ <style type="text/css">
+ .style1
+ {
+ font-size: small;
+ text-align: center;
+ }
+ .style2
+ {
+ text-align: left;
+ height: 32px;
+ }
+ .style3
+ {
+ font-size: small;
+ text-align: left;
+ width: 202px;
+ height: 32px;
+ }
+ .style4
+ {
+ font-size: small;
+ text-align: left;
+ width: 202px;
+ height: 21px;
+ }
+ .style5
+ {
+ text-align: left;
+ height: 21px;
+ }
+ .style6
+ {
+ font-size: small;
+ text-align: center;
+ height: 8px;
+ }
+ </style>
+</asp:Content>
+<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
+
+ <div class="main-title">
+ <h1>Configuration</h1>
+ <script type="text/javascript">
+ var thisdate = new Date();
+ document.writeln(thisdate.toLocaleString());
+ </script>
+ </div>
+
+ <div class="configuration">
+
+ </div>
+ <table border="0" cellspacing="0" align="center"
+ style="height: 95px; width: 375px; font-size: small">
+ <tr>
+ <td class="style4">Business Service</td>
+ <td class="style5">
+ <asp:dropdownlist ID="BsName" runat="server" Width="140px" />
+ <asp:RequiredFieldValidator ID="BsNameRequired" runat="server" ControlToValidate="BsName"
+ Text="*" CssClass="style1" />
+ </td>
+ </tr>
+ <tr>
+ <td class="style3">Order Processing Service</td>
+ <td class="style2">
+ <asp:dropdownlist ID="OpsName" runat="server" Width="140px" />
+ <asp:RequiredFieldValidator ID="OpsNameRequired" runat="server" ControlToValidate="OpsName"
+ Text="*" />
+ </td>
+ </tr>
+ <tr>
+ <td class= "style6" colspan="2">
+ <asp:Button ID="SetButton" runat="server" Text="Set" CssClass="button"
+ onclick="SetButton_Click" />
+ </td>
+ </tr>
+ </table>
+
+ </asp:Content>
Added: incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/Trade/Configuration.aspx.cs
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/Trade/Configuration.aspx.cs?rev=792384&view=auto
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/Trade/Configuration.aspx.cs (added)
+++ incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/Trade/Configuration.aspx.cs Thu Jul 9 03:37:55 2009
@@ -0,0 +1,108 @@
+//
+// 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.
+//
+
+// .NET Service Configuration V2.0 for Design Considerations for Service-Oriented Applications based on Windows Communication Foundation. Created with Microsoft .NET Framework 3.5 and Microsoft Visual Studio. Copyright 2008, Microsoft Corporation.
+
+using System;
+using System.Web;
+using System.Web.Security;
+using System.Web.UI;
+using System.Collections.Generic;
+using System.ServiceModel;
+using System.Threading;
+using Trade.StockTraderWebApplicationSettings;
+using Trade.StockTraderWebApplicationModelClasses;
+using Trade.StockTraderWebApplicationServiceClient;
+using Trade.Utility;
+using Trade.ConfigClient;
+using Trade.ConfigServiceDataContract;
+namespace Trade.Web
+{
+
+ public partial class Configuration : System.Web.UI.Page
+ {
+ protected void SetButton_Click(object sender, EventArgs e)
+ {
+ try
+ {
+ ConfigServiceClient configClient = new ConfigServiceClient();
+ ClientToBS clientRequest = new ClientToBS();
+ clientRequest.Client = "DOTNET_CLIENT";
+ clientRequest.Bs = this.BsName.SelectedItem.Value;
+ BSToOPS bsRequest = new BSToOPS();
+ bsRequest.Bs = this.BsName.SelectedItem.Value;
+ bsRequest.Ops = this.OpsName.SelectedItem.Value;
+
+ configClient.SetClientToBS(clientRequest);
+ configClient.SetBSToOPS(bsRequest);
+ }
+ catch
+ {
+ throw;
+ }
+ Response.Redirect(Settings.PAGE_HOME, true);
+
+ }
+ protected override void OnInit(EventArgs e)
+ {
+ try
+ {
+ LoadDropDownList();
+ base.OnInit(e);
+ }
+ catch
+ {
+ throw;
+ }
+
+ }
+
+ /// <summary>
+ /// Loads the dropdown lists with the business services and order processing services
+ /// If this method isn't called as PostBack, the default value will be set to current config
+ /// </summary>
+ private void LoadDropDownList()
+ {
+ ConfigServiceClient configClient = new ConfigServiceClient();
+
+ //Populate the dropdown lists
+ ServiceLocation[] bsLocations = configClient.GetBSLocations();
+ BsName.DataSource = bsLocations;
+ BsName.DataTextField = "ServiceName";
+ BsName.DataValueField = "ServiceName";
+ BsName.DataBind();
+
+ ServiceLocation[] opsLocations = configClient.GetOPSLocations();
+ OpsName.DataSource = opsLocations;
+ OpsName.DataTextField = "ServiceName";
+ OpsName.DataValueField = "ServiceName";
+ OpsName.DataBind();
+
+ if (!IsPostBack)
+ {
+ //Select the current configuration settings as the default values in the dropdown list
+ ClientConfigRequest existingClientConfig = new ClientConfigRequest();
+ existingClientConfig.ClientName = "DOTNET_CLIENT";
+ BsName.SelectedValue = configClient.GetClientConfig(existingClientConfig).BSName;
+
+ BSConfigRequest existingBsConfig = new BSConfigRequest();
+ existingBsConfig.BSName = BsName.SelectedValue;
+ OpsName.SelectedValue = configClient.GetBSConfig(existingBsConfig).OPSName;
+ }
+ }
+ }
+}
Modified: incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/Trade/Site.master
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/Trade/Site.master?rev=792384&r1=792383&r2=792384&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/Trade/Site.master (original)
+++ incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/Trade/Site.master Thu Jul 9 03:37:55 2009
@@ -55,6 +55,9 @@
<td>
<a href="Glossary.aspx">Glossary</a>
</td>
+ <td>
+ <a href = "Configuration.aspx">Config</a>
+ </td>
<td>
<asp:LoginStatus runat="server" Id="LoginStatusLink"
LogoutText="Login/Logout" LoginText="Login/Logout"
Modified: incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/Trade/Web.config
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/Trade/Web.config?rev=792384&r1=792383&r2=792384&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/Trade/Web.config (original)
+++ incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/Trade/Web.config Thu Jul 9 03:37:55 2009
@@ -28,20 +28,14 @@
<configuration>
<appSettings>
- <add key="ACCESS_MODE" value="DotNet_Http_WcfService"/>
- <!--
- //Valid Config Values for user-set "AccessMode" config setting.
- public const string ACCESS_STRING_DotNet_Http_WcfService = "DotNet_Http_WcfService";
- public const string ACCESS_STRING_DotNet_WsHttp_WcfService = "DotNet_WsHttp_WcfService";
- public const string ACCESS_STRING_PHP_Http_WebService = "PHP_Http_WebService";
- public const string ACCESS_STRING_WSAS_Http_WebService = "WSAS_Http_WebService";
- -->
+
<add key="EVENT_LOG" value="Trade Web App"/>
<add key="MAX_DISPLAY_ORDERS" value="20"/>
<add key="MAX_DISPLAY_TOP_ORDERS" value="5"/>
<add key="DISPLAY_DUPLICATE_KEY_EXCEPTIONS" value="true"/>
<add key="CHECK_ORDER_ALERT_EVERY_REQUEST" value="true"/>
<add key="ORDER_ALERT_CHECK_FREQUENCY" value="30"/>
+ <add key="CS_DOTNET_ENDPOINT_CONFIG_HTTP" value="ConfigClient_DotNet_BasicHttpBinding"/>
<add key="BSL_DOTNET_ENDPOINT_CONFIG_HTTP" value="BsClient_DotNet_BasicHttpBinding"/>
<add key="BSL_DOTNET_ENDPOINT_CONFIG_WSHTTP" value="BsClient_DotNet_WsHttpBinding"/>
<add key="BSL_PHP_ENDPOINT_CONFIG_HTTP" value="BsClient_PHP_BasicHttpBinding"/>
@@ -71,6 +65,13 @@
*********************************************************-->
<client>
+
+ <!-- DotNet Config Endpoints -->
+ <endpoint address="http://localhost:7000/tradeconfigservice"
+ contract="Trade.ConfigServiceContract.IConfigService"
+ binding="basicHttpBinding"
+ name="ConfigClient_DotNet_BasicHttpBinding" />
+
<!-- DotNet Clients -->
<endpoint address="http://localhost:9000/tradebusinessservice"
contract="Trade.BusinessServiceContract.ITradeServices"
Modified: incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/Trade/style.css
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/Trade/style.css?rev=792384&r1=792383&r2=792384&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/Trade/style.css (original)
+++ incubator/stonehenge/trunk/stocktrader/dotnet/trader_client/Trade/style.css Thu Jul 9 03:37:55 2009
@@ -120,6 +120,7 @@
div#header-links table {
height: 30px;
width: 765px;
+ margin-left: 0px;
}
div#header-links table td {
}