I really feel tired about this problem

I want to develop a web application using apache and tomcat in linux.
when my webapps start, a connection pool servlet will load on startup.

the other servlets in the webapps will use this statement to get a db connection.
"pool = (connectionPool)getServletContext().getAttribute("conpool");"

sometimes this statement will work very well but sometimes it will throws a exception 
(classCastException: connectionPool)....

help.... why the situation will different everytime?

what is the good way to implement the db connection pool?
is it startup servlet a good method?

thanks


Get your FREE Email at http://mailcity.lycos.com
Get your PERSONALIZED START PAGE at http://my.lycos.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

Reply via email to