Tomcat database connection pools failing on start-up

Cantor, Scott cantor.2 at osu.edu
Wed Feb 18 13:13:16 EST 2015


On 2/18/15, 6:07 PM, "Wessel, Keith" <kwessel at illinois.edu> wrote:



>Actually, Scott, if I understand Paul's note correctly, catching the 
>exception would help. The IDP wouldn't run and fail. It would just run 
>without saving sessions to the database. Unclustered IDPs are better than 
>IDPs that present a blank screen after login.

Well, sort of, except you may not know it's happening. At least failure is 
easily monitored for.

>And if anyone knows how to tell Tomcat dbcp to keep trying instead of 
>failing if the database server's unavailable on start-up, I'd love to 
>know.

dbcp isn't Tomcat's code. As a start, I'd see if it can take an 
initialSize property of 0 (see BasicDataSource javadoc).

-- Scott

>


More information about the users mailing list