home *** CD-ROM | disk | FTP | other *** search
- unit serv2;
-
- interface
-
- uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
- ComObj, VCLCom, StdVcl, BdeProv, DataBkr, CorbaRdm, CorbaObj,
- miserv_TLB, Db, DBTables;
-
- type
-
- TTMIAPLICACION = class(TCorbaDataModule, ITMIAPLICACION)
- DataSource1: TDataSource;
- Table1: TTable;
- Table2: TTable;
- procedure TMIAPLICACIONCreate(Sender: TObject);
- procedure TMIAPLICACIONDestroy(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- protected
- function Get_Table1: IProvider; safecall;
- function Get_Query1: IProvider; safecall;
- end;
-
- var
- TMIAPLICACION: TTMIAPLICACION;
-
- implementation
-
- {$R *.DFM}
-
- uses CorbInit, CorbaVcl, serv1;
-
- function TTMIAPLICACION.Get_Table1: IProvider;
- begin
- Result := Table1.Provider;
- end;
-
- procedure TTMIAPLICACION.TMIAPLICACIONCreate(Sender: TObject);
- begin
- MiServidor.UpdateClientCount(1);
- end;
-
- procedure TTMIAPLICACION.TMIAPLICACIONDestroy(Sender: TObject);
- begin
- Miservidor.UpdateClientCount(-1);
- end;
-
- function TTMIAPLICACION.Get_Query1: IProvider;
- begin
-
- end;
-
- initialization
- TCorbaVclComponentFactory.Create('TMIAPLICACIONFactory', 'TMIAPLICACION', 'IDL:miserv/TMIAPLICACIONFactory:1.0', ITMIAPLICACION,
- TTMIAPLICACION, iMultiInstance, tmMultiThreaded);
- end.
-