Hi Herbert, the ActiveMQ Artemis CORE client also supports failover to other live servers, you need to set the failoverAttempts parameter, i.e. (tcp://A:port,tcp://B:port)?failoverAttempts=-1
for further details see https://activemq.apache.org/components/artemis/documentation/latest/client-failover.html Regards, Domenico On Wed, 22 Nov 2023 at 09:20, <herbert.helmstr...@systema.com> wrote: > Hello Team, > > we are running two nodes with *artemis* 2.30 brokers connected with a > static network connector. > CORE and OPENWIRE are enabled on the same client acceptor. > From remote there is a java client connecting with a *failover* transport, > doing a periodic send while broker A and/or broker B can be shut down. > > ActiveMQ classic *"failover*:(*tcp*://A:port,*tcp*://B:port)" does a > client *failover* under the hood. > On connection loss it retries until success and blocks sending until it is > reconnected again. > This is good for server maintainance and failsafe operation. > > On the other hand *artemis* *netty* *libs* "(*tcp*://A:port,*tcp*://B:port)" > seem to close producer and session permanently, > if the currently connected broker goes away. > Thinking of complex clients this implies client restart and is not what we > want. > > Since both variants are nearly code - compatible, I would say the *netty* > libraries are missing the nice reconnect functionality. > Can it be true or did I forget something? > > Regards > > Herbert > > ------------------------------ > > *Herbert Helmstreit* > Senior Software Engineer > > Phone: +49 941 / 7 83 92 36 > herbert.helmstr...@systema.com > > www.systema.com > > [image: LinkedIn] <https://www.linkedin.com/company/systema-gmbh/>[image: > Facebook] <https://de-de.facebook.com/SYSTEMA.automation/>[image: XING] > <https://www.xing.com/pages/systemagmbh> > > SYSTEMA > Systementwicklung Dipl.-Inf. Manfred Austen GmbH > > Manfred-von-Ardenne-Ring 6 | 01099 Dresden > HRB 11256 Amtsgericht Dresden | USt.-ID DE 159 607 786 > Geschäftsführer: Manfred Austen, CEO und Dr. Ulf Martin, COO > >