The question is, the data source of my web application is not a database but a remote server which could be communicated through a private protocol based on tcp connection.
As creating a new connection to the data server for every http request is not very effective, I do want to have only one connection created when the site start and kept for later use.
I know that I can create a daemon process to communicate with the remote server, but it will too complicated.
Is there any simple resolution for my problem? Or I have to move to java to see if jsp could do it.
Please forgive me for my poor english. I tried my best to make me clear.