mdarifmustafa / vt-middleware

Automatically exported from code.google.com/p/vt-middleware
0 stars 0 forks source link

vt-ldap: add failover support to the connection handlers #74

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The only failover support available is via JNDI.
When multiple LDAP URLs are provided, JNDI will failover to the next URL in the 
list when the previous URL times out.

Add functionality to the connection handler implementation to support failover 
when an exception is thrown on connect.

Original issue reported on code.google.com by dfis...@gmail.com on 23 Jun 2010 at 1:47

GoogleCodeExporter commented 8 years ago
Initial design looks to add functionality for the following connection 
strategies:
  - Active-Passive
  - Round-Robin
  - Random

The default strategy will remain the current behavior of delegating failover to 
JNDI.

Original comment by dfis...@gmail.com on 23 Jun 2010 at 1:50

GoogleCodeExporter commented 8 years ago
Add notion of connection strategy to connection handlers.
Implementation currently provides DEFAULT, ACTIVE_PASSIVE, ROUND_ROBIN, and 
RANDOM.

DEFAULT: the existing behavior of delegating to JNDI.
ACTIVE_PASSIVE: always use the first URL unless it fails
ROUND_ROBIN: use the next URL in the list for each new connection
RANDOM: select a random URL from the list for each connection

Fixed in r1442.

Original comment by dfis...@gmail.com on 1 Jul 2010 at 6:16

GoogleCodeExporter commented 8 years ago

Original comment by dfis...@gmail.com on 1 Jul 2010 at 6:32