BCB with multiple wizards (Wizards) to simplify the development of a CORBA server. The following steps describe how to build a CORBA server with BCB.
Defining the Object interface
Use CORBA Server Wizard to create a server application that contains initialization boa and Orbcorba code at start time
Compile the IDL file containing the interface definition, and get the frame and stub.
Use the CORBA Object Wizard to define (and implement) the implementation of the class.
Completion of the 4 established class implementation CORBA object
If necessary, modify the CORBA interface and add the modifications to the class implementation.
Alternatively, you can choose to enroll IDL files into the interface library and object activation daemon.
--------------------------------------------------------------------------------
1-1 defining the Object interface
See also overview with the topic section.
--------------------------------------------------------------------------------
1-2 using CORBA Server Wizard to build a server application that contains initialization boa and Orbcorba code at start time
To start a new CORBA server project, select file| New, and then from the Multitier page of the dialog box, select the icon titled CORBA Server. CORBA Server Wizard lets you specify whether to build a console program (console application) or a window application (Windows application).
If you set up a console application, you can indicate whether you are using the VCL class. If not, all generated code can be ported to other platforms.
Also, when you select an application type, you can add any existing IDL file to the project or specify that you want to add a blank IDL file. The server project must end up with one or more IDL files that define the interface that the customer communicates with the server.
Note: If you do not join the IDL file at the beginning of the CORBA project, you can always choose project| Add to Project (for an existing IDL file) or select CORBA IDL file (to define the new IDL files) from the Multitier page of the New Items dialog box.
When you select the server type, click Ok,corba Server Wizard to create a new server project of the specified type, add the CORBA library to the project file, and add the starting code for the Orb (object request agent) and the BOA (Basic object adapter).
Automatically generated code defines two variables: Orb and Boa, which you can use to communicate with Orb and Boa.
Corba::orb_var ORB = Corba::orb_init (argc, argv);
Corba::boa_var BOA = Orb->boa_init (argc, argv);
If you specify a console application, you will also see the following line:
Boa->impl_is_ready ();
This call allows your program to receive messages from Boa, just as Windows message Loops allow a window application to receive messages from Windows. (Window-Type applications use Windows message loops to process CORBA messages).
Details of the Orb and Boa are shown in the Visibroker documentation (available for download to the Inprise website).
--------------------------------------------------------------------------------