I'm using c3p0 to manage a connection pool to a remote mysql server.  The server is maintained by a third party and is not a critical component of our application.

The problem is that on application startup, if the mysql server is down, the whole application fails to start.  It hangs on creating the connection pool.

What I need is for it to fail and then when the application requests a connection from the pool, it should re-attempt a connection.  The important thing is that the application needs to continue to run despite having a bad connection.

Could someone point me in the right direction for this problem?  c3p0 seems very configurable, I feel like this must be possible :-)