Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Aug : Threads and Sessions.
| Subject: | Threads and Sessions. |
| Posted by: | "Massimo Bolzoni" (massimo.bolzo..@mandelli.com) |
| Date: | Wed, 30 Aug 2006 09:54:59 |
Hello all.
I need a confirm about what I'm going to do.
In my intranet, I need to get data from a Paradox
database on a data server. This server is
equipped with a web-server Apache 2.
By means of a series of cgi scripts the clients
ask an application server (Win32 app) for data.
This application server includes a DataModule
(which owns a TSession, a TDatabase and a
TTable components), not autocreated, and
TIdTcpServer component (Indy 10), whose
Execute method is a thread, one for each client.
In this Execute method a DataModule instance
is created, used to get various data, and destroyed
at the end of the method. The data are written on
the connection to the requesting CGI.
Is this project correct and thread safe?
Thank you very much, Massimo.