#1 2014-06-13 12:09:31

ComingNine
Member
Registered: 2010-07-29
Posts: 294

Can there be multiple (TRestClientDB, TRestServerDB) pairs in one .exe

I wonder whether there can be multiple (TSQLRestClientDB, TSQLRestServerDB, defined in mORMotSQLite3) pairs in one .exe application ?

The reason to ask is that there are two units and I would like to have a (TSQLRestClientDB, TSQLRestServerDB, defined in mORMotSQLite3) pair dedicated for each unit. However, there is a global variable "GlobalURIRequestServer" defined in mORMot, which makes me wonder if it is theoretically possible to have multiple (TSQLRestClientDB, TSQLRestServerDB, defined in mORMotSQLite3) pairs in one .exe application

Last edited by ComingNine (2014-06-13 12:13:05)

Offline

#2 2014-06-13 12:23:06

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,661
Website

Re: Can there be multiple (TRestClientDB, TRestServerDB) pairs in one .exe

GlobalURIRequestServer is only for function URIRequest() which is for .dll hosted server.

So you can have several TSQLRestClientDB, TSQLRestServerDB instances in the same exe.

Offline

#3 2014-06-13 12:27:43

ComingNine
Member
Registered: 2010-07-29
Posts: 294

Re: Can there be multiple (TRestClientDB, TRestServerDB) pairs in one .exe

Many thanks for your helpful answer ! smile

Offline

Board footer

Powered by FluxBB