This tutorial provides a step-by-step lesson on developing
component-based distributed applications using CoSMIC modeling
toolkit and CIAO
DAnCE framework. The example application used in this tutorial is a
Stock Quoter that consists of two components; the StockDistributor
and the StockBroker. The StockDistributor
notifies one or more stock brokers whenever a stock price changes. Upon
receiving the notification, the StockBroker
fetches information about a particular stock from the StockDistributor. The figure bellow
shows the application diagram.
This Stock Quoter application
is based on a series of CORBA
component model columns written by Doug Schmidt and Steve Vinoski for C/C++ Users Journal and has consistently
been
used as an example for TAO.
This tutorial will show you how to use generic modeling techniques CoSMIC to assist the development process of CIAO applications. All the necessary steps to build a component-based application model via CoSMIC toolkit are documented here.
Prerequisite
Note:
1. Although the descriptor files generated by CoSMIC toolkits are portable, the modeling environment required by CoSMIC (GME) only supports MS Windows platforms currently. So this tutorial will focus on Windows users.
2. The CIAO/DAnCE codes used for this tutorial can be found in%CIAO_ROOT%/docs/tutorials/Quoter/Simple
.
Note:
1.Usually you should download the latest GME, but it is possible that CoSMIC hasn't been updated yet to support the very latest GME..The installation process of CoSMIC will tell you which version it is expecting. So please make sure the GME version you are using is the version required by CoSMIC. A different version of GME may result in undefined errors.
2.Make susre that you install GME first before you start with CoSMIC toolkits.