Re: TOMCAT REALM dosn't work after DB was down

From: X_AWemner_X (mail_at_mail.com)
Date: 10/23/03


Date: Thu, 23 Oct 2003 09:15:37 +0300


> I think its because the jdbc connection which it creates to do the
> suthentication is no longer valid and it doesn't have the logic to create
> a new connection and try again. Connection pools have the same problem
> under Tomcat.

Is it still so, that current releases of DBCP pooling cannot use "isAlive"
query to verify the connection and drop dead ones?

I think a proper pooling should have at least the following parameters:
isAliveQuery = Select * From Dual (or something else to run a simple query)
isAliveInterval=5 (run isalive every 5sec for acquired connections)

isAliveInterval can be used so that if connection instance is not being used
by clients within given interval, then isalive query is run on it. Dead
instance is dropped and new one created. This will avoid unnecessary isalive
queries if instances is taken from and put back to the pool with rapid
intervals. We will assume it still works if worked fine within last 5
seconds.



Relevant Pages

  • Re: Informix+ODBC+ADO.NET - problem
    ... It is hard for me to imagine why any problem with a select query would ... the ODBC driver and your application is assuming that whatever went ... wrong was the same as a dead connection. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: ASP - FROM statement slows down connection to database
    ... Open your database in Access, switch to the Queries tab, create a new query ... in Design View without choosing a table, swtich to SQL View, paste the sql ... connection string rather than using an ... recordset open statements. ...
    (microsoft.public.inetserver.asp.db)
  • Re: Update checking
    ... My thought was to use a simple query with a "username" param ... concurrency exceptions happen if the data you queried has ... > was and basically let the user work in a similar offline mode. ... Where does connection pooling come ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: MS Access looks for .mdb rather than Progress schema
    ... # Same query previously worked in Progress 8.x using SQL89. ... This entry allows you to keep your existing code written with the ODBC ... BTW, if you put all of the connect information into the connect string, ... I also tried putting the whole thing in the connection string: ...
    (microsoft.public.access.modulesdaovba)
  • Re: OpenDataSource & stored procedure
    ... recognises the ODBC escape syntax. ... You shouldn't need the connection parameter since Word gets it from the ... return multiple result sets - enough to confuse software such as MS Query ... >>> The call works in MSQuery but won't return the data to Word. ...
    (microsoft.public.word.mailmerge.fields)