UniSQLMonitor in multitier (RemObjects DA)
Posted: Fri 18 Sep 2020 09:05
Hi,
I'm developing a multitier app (I use RemObjects DA) and for access to DB I use UniDAC (Oracle database).
I need to log the SQL generated from the server app I wolud use the TUniSQLMonitor component to capture and log all.
In the server project I have a main datamodule and many services which are instantiated by threads. In order to link the session data to the log, I would need to insert the TUniSQLMonitor component in each service instead of centralizing the log in a single point. So I will insert as many TUniSQLMonitor components as there are services. This can be a problem?
For this I have disabled all options (moDialog, moSQLMonitor, moDBMonitor, miCustom and moHandled) and I use only the event OnSQL.
Thank you very much
I'm developing a multitier app (I use RemObjects DA) and for access to DB I use UniDAC (Oracle database).
I need to log the SQL generated from the server app I wolud use the TUniSQLMonitor component to capture and log all.
In the server project I have a main datamodule and many services which are instantiated by threads. In order to link the session data to the log, I would need to insert the TUniSQLMonitor component in each service instead of centralizing the log in a single point. So I will insert as many TUniSQLMonitor components as there are services. This can be a problem?
For this I have disabled all options (moDialog, moSQLMonitor, moDBMonitor, miCustom and moHandled) and I use only the event OnSQL.
Thank you very much