Thread View: borland.public.cppbuilder.database.multi-tier
2 messages
2 total messages
Started by Manuel Fernandez
Thu, 09 Dec 1999 00:00
SERVER SIDE
Author: Manuel Fernandez
Date: Thu, 09 Dec 1999 00:00
Date: Thu, 09 Dec 1999 00:00
5 lines
846 bytes
846 bytes
What type of application you new for a server side, i mean can you use an Active DLL to be the server side?. Because the problem i have with an .exe is that everytime a client connects, a new server.exe starts on the server machine. i thought that with a dll i'd solve the problem, but with a dll, only one client can be attached at a time.Thnaks
Re: SERVER SIDE
Author: Mark Cashman (TeamB BCB)
Date: Sat, 11 Dec 1999 00:00
Date: Sat, 11 Dec 1999 00:00
31 lines
2117 bytes
2117 bytes
Hi, Manuel! The answer to your question depends on the technology you use. In CORBA, you can use several threading models, ranging from a separate servant for each request through thread pooled multithreaded single servants, to replicated multithreaded servants. In MTS you have several threading models - single, apartment, and free. Remote data modules can be either a CORBA servant or an MTS object. And, of course, you can implement your own communication method and threading method by basing invocation on named pipes, sockets, or http. Or you can offer your service from a webserver with one of the CGI options. Take your pick... My guess is that your problem with the Active DLL stems from the need for the DLL to execute in a process context, and, since you are invoking it remotely, the proxy on the server side creates an .exe to host the .dll without checking to see if one already exists. MTS may be a solution to this, if you really want to use the MS technology. My personal preference though is for CORBA, partly since it offers thread pooling, which is not available for MTS, but also because it seems to have a cleaner, simpler, and more object oriented model. ------ Mark Cashman (TeamB - C++ Builder), creator of The Temporal Doorway at http://www.temporaldoorway.com - Original digital art, writing, music and more - C++ Builder / JBuilder Tips and The C++ Builder Programmer's Webring (Join us!) http://www.temporaldoorway.com/programming/index.htm ------
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads