Ask a questionAsk a question
 

QuestionMSMQ / Messaging support

All Replies

  • Wednesday, November 04, 2009 5:15 PMGregory Leake Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Yes.  There is an 'optional' Order Processing Service that is part of stocktrader.  Stocktrader works in a variety of configurations, starting with a default install where the entire app runs as a monolithic ASP.NET web app, and all interactions, business logic, order processing happens as in-process activation of the logical tiers of the app wthin an ASP.NET worker process. Using the configweb UI, you can then change one of two (or both) config settings for:

    a)  Access_Mode.  This you set by logging into ConfigWeb for the ASP.NET web tier.  This setting is used to change how the ASP.NET UI invokes the business service tier.  By default, this is set to InProcess (monolithic ASP.NET Web app).  You can change this to instead use WCF to activate a remote .NET middle tier (either self-hosted or IIS Hosted in .NET, either over http or net.tcp); or remote Java middle tier (WebSphere, WebLogic, OC4J).

    b)  Order_Mode. You can change this setting by logging into ConfigWeb UI for the .NET middle tier (either self hosted or IIS Hosted).  This is where MSMQ comes in.  If you set this mode to ASync_MSMQ, then the middle tier will send orders over MSMQ to be processed by the separate Order Processing Service, with a WCF service bound to a transacted MSMQ with distributed tx between the MSMQ and the SQL database, with poison message handling.

    When you install StockTrader, read (from the Windows start menu group), the document titled ".NET StockTrader COnfiguration Guide".  This discusses the modes/options above, and has a step-by-step tutorial on how to reconfigure for these modes with screen shots.

    -Greg
    Greg Leake, Microsoft