logger.info(String.format("exchange %s uses determined broker %s", exchange.getName(), exchange.getBroker()));
connection = Daemon.getConnection(sessionConfig.getConnection());
}
else {
logger.info("getting exchange lock: " + lockPath);
lock.acquire(LockType.WRITE_LOCK);
logger.info("exchange lock: " + lockPath + " acquired");
exchange.setBroker(ExchangeFarm.getInstance().queryExchangeHost(exchange));
if(exchange.getBroker() == null)
throw new MistException(String.format("can not request broker from MFR for `%s:%s'", isQueue() ? "queue": "topic", getChannelName()));