Re: Connection pool race condition

2011-04-30 Thread chris derham
Fixed this by setting the service to startup delayed sc config service_name start= delayed-auto Thanks Chris

RE: Connection pool race condition

2011-04-30 Thread Caldarale, Charles R
From: cjder...@gmail.com [mailto:cjder...@gmail.com] On Behalf Of chris derham Subject: Re: Connection pool race condition Fixed this by setting the service to startup delayed sc config service_name start= delayed-auto Sounds like a FAQ/Wiki entry might be in order here, but I'm not quite

Re: Connection pool race condition

2011-04-28 Thread Peter Crowther
You could use Windows' service dependency management ( http://support.microsoft.com/kb/193888) to start Tomcat only after Oracle reports that it's running. This might still cause problems if Oracle does the same as SQL Server and continues recovering after its official startup has finished. In

Re: Connection pool race condition

2011-04-28 Thread David kerber
On 4/28/2011 8:36 AM, Peter Crowther wrote: You could use Windows' service dependency management ( http://support.microsoft.com/kb/193888) to start Tomcat only after Oracle reports that it's running. This might still cause problems if Oracle does the same as SQL Server and continues recovering

Re: Connection pool race condition

2011-04-28 Thread Filip Hanik - Dev Lists
this is the way to go, just setup a service dependency On 4/28/2011 7:36 AM, Peter Crowther wrote: You could use Windows' service dependency management ( http://support.microsoft.com/kb/193888) to start Tomcat only after Oracle reports that it's running. This might still cause problems if

Re: Connection pool race condition

2011-04-28 Thread Filip Hanik - Dev Lists
There is another solution that should work, and that is to define initialSize=0 so that no attempt is made to contact the DB when it is created. Then set testOnBorrow=true The jdbc-pool project should work like this http://people.apache.org/~fhanik/jdbc-pool/ Filip On 4/28/2011 1:58 PM, Filip

Connection pool race condition

2011-04-27 Thread chris derham
All, So we have various tomcat services setup on windows. When windows updates are auto installed, sometimes they force a reboot of the server. When this happens, the tomcats win the race with the database (Oracle) to startup. Then the connection pool can't start, and then the war file is flagged