application server implementation
-
Hi there Wondering generally how the server side of an application server is done (non web based). Say you wanted to write an accounting program. The server would run on Windows Server 2008 for example and handle business logic and database access. The client program would have the client forms, etc and obtain data from the server. Is the server software usually set up as a Windows service normally? It would listen on certain ports? How does the server handle multiple concurrent users? I would imagine that after authentication, some sort of thread is created to listen for requests from the user?
-
Hi there Wondering generally how the server side of an application server is done (non web based). Say you wanted to write an accounting program. The server would run on Windows Server 2008 for example and handle business logic and database access. The client program would have the client forms, etc and obtain data from the server. Is the server software usually set up as a Windows service normally? It would listen on certain ports? How does the server handle multiple concurrent users? I would imagine that after authentication, some sort of thread is created to listen for requests from the user?
Ryan Minor wrote:
Say you wanted to write an accounting program. The server would run on Windows Server 2008 for example and handle business logic and database access. The client program would have the client forms, etc and obtain data from the server.
I'd try to check if a database-server would suffice :)
Ryan Minor wrote:
Is the server software usually set up as a Windows service normally?
Yup, that way it starts when the machine starts, without the Admin even having to log in.
Ryan Minor wrote:
It would listen on certain ports?
Any free port will do.
Ryan Minor wrote:
How does the server handle multiple concurrent users? I would imagine that after authentication, some sort of thread is created to listen for requests from the user?
Preferably by spawning a thread for each new connection. There's an example on MSDN on using sockets, with the server example here[^] and the client example here[^].
I are Troll :)