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)
{
log.warn("Error on querying binding on bridge " + this.name + ". Retrying in 100 milliseconds", e);
// 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())
{
log.warn("Address " + forwardingAddress +
" doesn't have any bindings yet, retry #(" +
retryCount +
")");
scheduleRetryConnect();
return;
}
}
else
{
if (!query.isExists())
{
log.info("Bridge " + this.getName() +
" connected to fowardingAddress=" +
this.getForwardingAddress() +
". " +