Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The producer is responsible for providing either data, routines, or services to its consumer programs. The producer, together with the consumer, make a complete distributed application. Each CORBA producer program is designed with the assumption that there will be consumer programs to invoke its services. Therefore, each producer program will create servant objects and provide IORs so that the objects may be accessed. Figure 8-5 contains a simple producer program used in conjunction with the consumer program from Figure 8-4. Figure 8-5 contains the basic components that any CORBA producer program will contain.