Hi Ruslan,
Am sorry for interpreting your message incorrectly.I thought, you required information on DB connection.
To maintain a persistent connection with the client, as you have rightly mentioned, you would need to set an appropriate header.
I am quoting a paragraph, from Jason Hunter's book - Servlet Programming, where he discusses about HTTP Response Headers.It is available on
Page 146, Table 5-2, in his book.
Connection Used to indicate whether the server is willing to maintain an open(persistent) connection to the client.If so,its value is set to keep-alive.If not,its value is set to close.Most web servers handle this header on behalf of their servlets, automatically setting its value to keep-alive when a servlet sets its Content-Length header.
Hope this helps,
Regards,
------------------
Sandeep Desai
vgdesai@vsnl.com
- Sun Certified Java Programmer Scored 93 per cent
- Oracle JDeveloper Rel. 3.0 - Develop Database Applications with Java Scored 56 out of 59
- IBM Enterprise Connectivity with J2EE Scored 72 per cent
- Enterprise Development on the Oracle Internet Platform Scored 44 out of 56
[This message has been edited by Desai Sandeep (edited April 10, 2001).]