This section shows how to implement a simple hello world component using the CCM Tools. Of course, this is not a real world application; creating a component just for a hello world example is really structural overkill. But the example is well suited to demonstrate the use of the CCM Tools.
As shown in Fig. 3.1, the development process defines different roles that reflect different abstraction levels of components.
The CCM Tools support this development process by providing an IDL parser and different code generators. Each component has two logical parts, and generated code is used in both parts:
Happily, the component developer need not be a CORBA guru to implement these functions: Generated remote (out-of-process) component logic can handle the interface with a CORBA server.
Also, because of the nature of a component based application, the component developer should not implement a given component's business logic with an entire application in mind. Components are, on the contrary, meant to encapsulate well defined logical processes without caring about the overall structure of the application environment.
Finally, the CCM Tools make use of the Confix build tool to create a library from the generated (component logic) and hand-crafted (business logic) source code. The component libraries are stored in a component repository on the server side and are used to assemble modular, component based applications.
2003-11-09