🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.multi-tier
Article #345

Multi-threaded AppServer (Exe)

#345
From: Andy Walker
Date: Wed, 14 Nov 2001 13:19
39 lines
2457 bytes
Firstly, apologies if this appears more than once because I 
posted it on google and it never appeared.

I am trying to create an AppServer (exe, multiuse) that can 
process more than 1 client request at the same time.  So, if 
client 1 issues a long command then client 2 doesn't have to 
wait until the first request has finished before their request 
begins.  I have an EXE AppServer that does just that.  

I have scoured the groups and have come to the conclusion that
this behavior is a result of creating an EXE AppServer rather 
than a DLL AppServer.  The EXE only has 1 main thread and 
therefore requests are processed synchronously.  A very simple 
DLL AppServer process multiple long requests at the same time.

1) Is this a correct conclusion?

2) Is there an easy way to convert an EXE AppServer (>20000 lines
of code) into a DLL AppServer?

3) Because the AppServer will no longer be visible through
dcomcnfg, how do I control the security of the DLL?

4) Do I need to (or must I) place the DLL AppServer into MTS so 
that MTS becomes the surrogate?  If I don't use MTS, how else 
will the DLL be executed?

5) Is there a C++ Builder version of the Delphi 
TThreadedClassFactory code? which seems to solve all of my 
problems apart from the fact that it only works with Delphi.

6) I have seen the posts from Mark (Brown?) detailing how to
amend the ATL headers and code, but, they were quite a while ago 
and I don't think they apply to Builder 5.

Any help greatly appreciated.

Andy
Technical Details
Message-ID: <3bf26f4b$1_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!isdnet!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.visi.com!hermes.visi.com!nycmny1-snh1.gtei.net!crtntx1-snh1.gtei.net!lsanca1-snf1!news.gtei.net!enterprise!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcd2b,d11d7c64dc9647e0,start
X-Google-Attributes: gidfcd2b,public
X-Google-ArrivalTime: 2001-11-14 05:42:40 PST
From: "Andy Walker" <andy@iola.co.uk>
Sender: "Andy Walker" <andy@iola.co.uk>
Reply-To: "Andy Walker" <andy@iola.co.uk>
Subject: Multi-threaded AppServer (Exe)
Newsgroups: borland.public.cppbuilder.database.multi-tier
X-User-Info: 62.7.53.197 62.7.53.197    
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3bf26f4b$1_2@dnews>
Date: 14 Nov 2001 05:19:07 -0800
X-Trace: dnews 1005743947 207.105.83.65 (14 Nov 2001 05:19:07 -0800)
Lines: 39
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!isdnet!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.visi.com!hermes.visi.com!nycmny1-snh1.gtei.net!crtntx1-snh1.gtei.net!lsanca1-snf1!news.gtei.net!enterprise!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!dnews