/** * Start the source connection - note the source connection must not be started before otherwise * messages will be received and ignored */ protected void startSourceConnection() { try { sourceConn.start(); } catch (JMSException e) { HornetQJMSServerLogger.LOGGER.jmsBridgeSrcConnectError(e); } }
@Override protected void succeeded() { // Don't call super - a bit ugly in this case but better than taking the lock twice. HornetQJMSServerLogger.LOGGER.bridgeConnected(); synchronized (lock) { failed = false; started = true; // Start the source connection - note the source connection must not be started before // otherwise messages will be received and ignored try { startSource(); } catch (JMSException e) { HornetQJMSServerLogger.LOGGER.jmsBridgeSrcConnectError(e); } } }