commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ricardo Espirito Santo (JIRA)" <>
Subject [jira] [Commented] (DBCP-393) DBCP to support database connection failover
Date Mon, 03 Jun 2013 22:08:20 GMT


Ricardo Espirito Santo commented on DBCP-393:

Hey Campbell, 

What would the maxRetry be used for? If we'd be counting the number of failed connection attempts
it would need a cleaver mechanism of parsing failed connection responses otherwise we could
be retrying on impossible to recover scenarios such as wrong password invalid username...

DriverManagerConnectionFactory seems like a very straight forward implementation and I wonder
why none of this logic was ever included.

Can someone else please comment on this?
> DBCP to support database connection failover
> --------------------------------------------
>                 Key: DBCP-393
>                 URL:
>             Project: Commons Dbcp
>          Issue Type: Improvement
>    Affects Versions: 1.4
>            Reporter: Campbell
>            Priority: Critical
> Hello. Would it be possible for the DriverManagerConnectionFactory to accept a list or
alternative database connection URL. With a possible maxRetry parameter, the suggestion is
this improvement would allow for automatic fail over to a secondary database when a connection
exception occurs.
> Let me know if this is a good candidate or if you have made thought of this already as
it is standard behaviour in other managed datasources. Many thanks.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message