session = (ClientSessionInternal)csf.createSession(user, password, false, true, true, true, 1);
}
if (forwardingAddress != null)
{
BindingQuery query = null;
try
{
query = session.bindingQuery(forwardingAddress);
}
catch (Throwable e)
{
HornetQServerLogger.LOGGER.errorQueryingBridge(e, name);
// This was an issue during startup, we will not count this retry
retryCount--;
scheduleRetryConnectFixedTimeout(100);
return;
}
if (forwardingAddress.startsWith(BridgeImpl.JMS_QUEUE_ADDRESS_PREFIX) || forwardingAddress.startsWith(BridgeImpl.JMS_TOPIC_ADDRESS_PREFIX))
{
if (!query.isExists())
{
HornetQServerLogger.LOGGER.errorQueryingBridge(forwardingAddress, retryCount);
scheduleRetryConnect();
return;
}
}
else
{
if (!query.isExists())
{
HornetQServerLogger.LOGGER.bridgeNoBindings(getName(), getForwardingAddress(), getForwardingAddress());
}
}
}