CORBA applications

Corba.bpg is a project group containing Client.dpr and Server.dpr. These are a CORBA client and server application respectively. The server application has a property to extract the current date and time. The client accesses the property using early binding and displays the date/time on its form. The project eliminates the Dial-Up Networking dialog that occurs on machines with it installed, by playing with the registry during initialisation.

Corba.bpg also contains another project, DIIClient.dpr. This does the same as Client.dpr, but does not use the type library import unit (i.e. does not have access to the inteface types). This is similar to talking to an Automation object through a Variant. There are some steps required to do this. You have to export the type library to CORBA IDL (in the type library editor). You then have to make an interface repository with IREP.EXE and add the IDL file to the repository with IDL2IR.EXE.

Delphi 4 has an example of a CORBA client/server application using early binding in DEMOS\CORBA\ACCOUNT. An alternative server using late binding via CORBA's Dynamic Invocation Interface (DII) can be found in DEMOS\CORBA\ACCOUNT\DII.

CorbaDB.bpg is a project group containing CorbaDBClient.dpr and CorbaDBServer.dpr. These are a CORBA client and server application using MIDAS. The client application displays some data from the server and can apply updates. It uses an action list to ensure that the Apply Updates functionality is only available if there are updates to apply. The project eliminates the Dial-Up Networking dialog that occurs on machines with it installed, by playing with the registry during initialisation.

Delphi 4 has an example of a CORBA/MIDAS client/server application in DEMOS\CORBA\DATAMODULE. This shows a master detail relationship from a CORBA server.

