Overview
This sample is based on: http://www.enterpriseintegrationpatterns.com/ramblings/18_starbucks.html
Note: Do not run both the pre-built services and the subscription manager GUI at the same time. The GUI has the same services in one WinForm app for the purposes of demoing the code base. If both are on they will steal messages from each other.
Setup
The samples in this section will create their queues if they are missing, so administrative rights will be needed if the queues do not exist. The following queues will be created:
(local)/starbucks_barista
(local)/starbucks_barista_control
(local)/starbucks_cashier
(local)/starbucks_cashier_control
(local)/starbucks_customer
(local)/mt_health
(local)/mt_health_control
(local)/mt_subscriptions
(local)/mt_systemview
(local)/mt_systemview_control
(local)/mt_timeout
(local)/mt_timeout_control
SQL Compact Framework
The samples use the SQL Compact Framework by default. There are some distribution rules with the SqlCe framework so just go get it here. You need to get the version that matches your operation system (x86 32-bit or x64 for 64-bit). Copy the libraries from C:\Program Files\SQL Server Compact Framework and the Desktop subdirectory into the trunk\bin directory where the MassTransit.RuntimeServices.exe is built. Make sure you get the right version for your operating system!
SQL Server
If you have a SQL server instance you can use, modify the app.config for the MassTransit.RuntimeServices and comment out the SqlCe stuff and uncomment the SQL Server settings. There is a SQL script in the same project that can be used to create the tables in the database. Make sure that the appropriate schema matching what is in the app.config is used to create the tables.
To Run
Open up $/Samples/Starbucks/Starbucks.sln
Start the following projects
/References/MassTransit.RuntimeServices (This runs all of the services necessary for the demo [subscriptions, health, etc], so start it first)
/References/MassTransit.SystemView (This gives an internal view into the subscriptions, timeouts, and health status of the system)
/Starbucks.Barista
/Starbucks.Cashier
/Starbucks.Customer
Comments (0)
You don't have permission to comment on this page.