You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Fred Janon <fj...@gmail.com> on 2009/08/25 14:29:55 UTC
JNDI-Datasource: what happens if the database is not ready when
Tomcat starts?
Hi,
I am looking into using the JNDI/Datasource facility in Tomcat 5.5 to
connect to a mySQL 5.0 database on a Windows 2003 server. Both Tomcat and
mySQL run as services.
What happens if the Tomcat service starts before mySQL? Does Tomcat wait for
a while for the DB to be ready? Does it launch the apps or wait until the DB
is ready?
Thanks
Fred
Re: JNDI-Datasource: what happens if the database is not ready when
Tomcat starts?
Posted by Mikolaj Rydzewski <mi...@ceti.pl>.
Fred Janon wrote:
> I am looking into using the JNDI/Datasource facility in Tomcat 5.5 to
> connect to a mySQL 5.0 database on a Windows 2003 server. Both Tomcat and
> mySQL run as services.
> What happens if the Tomcat service starts before mySQL? Does Tomcat wait for
> a while for the DB to be ready? Does it launch the apps or wait until the DB
> is ready?
>
It depends on DataSource implementation and configuration.
AFAIK Tomcat uses repackaged commons-dbcp - http://commons.apache.org/dbcp/
--
Mikolaj Rydzewski <mi...@ceti.pl>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org