HornetQConnectionFactory hornetQCF = (HornetQConnectionFactory)cf;
ha = hornetQCF.isHA();
if (ha)
{
HornetQConnection hornetQConn = (HornetQConnection)conn;
failoverListener = new BridgeFailoverListener();
hornetQConn.setFailoverListener(failoverListener);
}
}
conn.setExceptionListener(new BridgeExceptionListener(ha, failoverListener));