Description
Hello.
We have a cluster which contains 2 brockers (version 5.15.3). Our application enqueue and dequeue from ActiveMQ in multithread. Each thread create own connection like this:
var connectionFactory = new ConnectionFactory(connectionString, settings.ClientId); return connectionFactory.CreateConnection(settings.UserName, settings.Password);
We tests communication between our app and cluster and some scenario is network connection dropped or brockers vm shutdowns. In this case library can hang (for dequeue or enqueue).
Connection URI is:
failover:(tcp://dd-amq-app01:61616,tcp://dd-amq-app02:61616)?transport.maxReconnectAttempts=0&transport.startupMaxReconnectAttempts=0&transport.useExponentialBackOff=false&transport.maxReconnectDelay=1000&transport.timeout=10000
What can we do that library will throw exception or another behavior?
Logs in attach