private synchronized ConnectionFactory nodeConnectionFactory(String queue, String node, String address) { if (this.logger.isInfoEnabled()) { this.logger.info("Queue: " + queue + " is on node: " + node + " at: " + address); } ConnectionFactory cf = this.nodeFactories.get(node); if (cf == null) { cf = createConnectionFactory(address, node); if (this.logger.isInfoEnabled()) { this.logger.info("Created new connection factory: " + cf); } this.nodeFactories.put(node, cf); } return cf; }
private synchronized ConnectionFactory nodeConnectionFactory(String queue, String node, String address) { if (this.logger.isInfoEnabled()) { this.logger.info("Queue: " + queue + " is on node: " + node + " at: " + address); } ConnectionFactory cf = this.nodeFactories.get(node); if (cf == null) { cf = createConnectionFactory(address, node); if (this.logger.isInfoEnabled()) { this.logger.info("Created new connection factory: " + cf); } this.nodeFactories.put(node, cf); } return cf; }