nabmoh123 commented on a change in pull request #4939: URL: https://github.com/apache/nifi/pull/4939#discussion_r607723417
########## File path: nifi-nar-bundles/nifi-amqp-bundle/nifi-amqp-processors/src/main/java/org/apache/nifi/amqp/processors/AbstractAMQPProcessor.java ########## @@ -317,7 +330,16 @@ public void handleUnexpectedConnectionDriverException(Connection conn, Throwable }); try { - Connection connection = cf.newConnection(executor); + Connection connection; + if (context.getProperty(BROKERS).isSet()) { + Address[] hostsList = createHostsList(context); + connection = cf.newConnection(executor, hostsList); + } else { + cf.setHost(context.getProperty(BROKERS).evaluateAttributeExpressions().getValue()); Review comment: good spot, yes I'll correct this -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org