[rabbitmq-discuss] Extending the java rabbitmq client
Hans-Joachim Kliemeck
klk at mmw.ag
Thu Apr 3 13:30:57 BST 2014
Hey,
sure, but the current implementation lacks of support regarding the URI
configuration method (which i thing is very sexy). It is possible that
the patch will be included or do you have any objections against it?
Regarding the shuffling, maybe it is better to call them additionalHosts
or something like that.
greets
Hans-Joachim
Am 03.04.2014 14:20, schrieb Michael Klishin:
> On 3 April 2014 at 16:17:49, Hans-Joachim Kliemeck (klk at mmw.ag) wrote:
>>> I've discovered that there is already a possibility to auto-reconnect
>> the client ("automaticRecovery") but i want to make advantage
>> of the
>> multiple addresses capability on newConnection. Attached
>> a patch for the
>> change.
>
> If you use ConnectionFactory#newConnection with an array of addresses,
> they will be shuffled before every connection attempt:
>
> http://hg.rabbitmq.com/rabbitmq-java-client/file/53441f4809ac/src/com/rabbitmq/client/impl/recovery/RecoveryAwareAMQConnectionFactory.java#l32
> --
> MK
>
> Software Engineer, Pivotal/RabbitMQ
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
--
marken mehrwert - brand added value AG
Tel.: +49 (0) 621-761395-748
Tel.: +49 (0) 175-5276327
Julius-Hatry-Strasse 1, 68163 Mannheim, Germany
Vorstand: Frank Schwarz
Aufsichtsrat: Prof. Dr. Stefan Jugel (Vorsitzender), Prof. Dr. Michael
Woywode, Prof. Dr. h.c. Dietmar von Hoyningen Huene
USt-IdNr. DE258032509, Registergericht Mannheim HRB 704123
More information about the rabbitmq-discuss
mailing list