- You should/need not build a connection for every request. There are
several connection pooling approaches.

- Try closing connections yourself.

zengjj wrote:
>
> Hi there,
>
> I encounter a problem when I connect the database in my servlet. Usually I
> build a connection for every request. The database
> seldom close all connections automatically. This will result in my servlet
> hanged forever. I could not avoid such problem.
>
> thanks in advance,
>
> jianjiang zeng
>
> ________________________
> Are you ChinaRen?
> 感受中国人的电子生活
> http://www.chinaren.com
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to