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.
Prerequisites
Note:
1. Although the descriptor files generated by CoSMIC toolkits are portable, the modeling environment required by CoSMIC (GME) only supports Microsoft Windows platforms.
2. The CIAO/DAnCE codes used for this tutorial can be found in%CIAO_ROOT%/docs/tutorials/Quoter/Simple
.
3. The current tutorial is tested under GME 5.9.21, and CosMIC 0.5.2. It will be subject to change as version of GME and CoSMIC evolves.
Getting Started
Note:
- Please use only the version of GME that the CoSMIC package you have downloaded requires. Attempts to use earlier or later versions may result in undefined behavior.
- Make sure you install GME before you install CoSMIC.