6 Replies Latest reply on Feb 20, 2007 12:24 PM by genman

    URLSelectorStrategy

    genman

      Re: http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossJCADatabaseFailover

      I'd like to slightly refactor the ha-local-rar stuff so that it can support more than just "sticky round-robin"; the use case being to share the load across multiple read-only databases.

      The obvious way to extend HA would be to add an additional configuration key that either indicates a Java class to use (implementing, say, URLSelectorStrategy) or some sort of general configuration value set, e.g. "SRR", "RR".

      One complication I see is both XA and non-XA have their own URLSelector implementations. (This I think can be easily fixed.)

      If I could solicit your opinion on what the configuration names and class layout should be, I can take a stab at it.

      I also don't see any unit tests for this functionality in HEAD -- are there any?