Uploaded image for project: 'JBoss Messaging'
  1. JBoss Messaging
  2. JBMESSAGING-1543

Message Bridge does not start if the first attempt failed

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.4.0.SP3, 1.4.2.GA.SP1
    • Fix Version/s: 1.4.0.SP3.CP08, 1.4.4.GA
    • Component/s: None
    • Labels:
      None
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      In the StartupFailureHandler#succeeded() instead of sourceConn.start() call start().
      protected void succeeded() {
      // Don't call super - a bit ugly in this case but better than taking the lock twice.
      log.info(name + " Succeeded in connecting to servers");

      synchronized (lock) {
      failed = false;

      // at this moment the bridge is stopped
      try

      { start(); }

      catch (Exception e)

      { log.error("Failed to start source connection", e); }

      }
      }

      Show
      In the StartupFailureHandler#succeeded() instead of sourceConn.start() call start(). protected void succeeded() { // Don't call super - a bit ugly in this case but better than taking the lock twice. log.info(name + " Succeeded in connecting to servers"); synchronized (lock) { failed = false; // at this moment the bridge is stopped try { start(); } catch (Exception e) { log.error("Failed to start source connection", e); } } }

      Description

      The server A sends messages to the queue QA. A message bridge is deployed on the server B, it reads messages from QA and sends them to the queue QB on the server B. If we start the server A first and then the server B then the bridge works properly. If we start the server B first, the bridge fails to start (as expected), then we start the server A. The bridge detects that A is running and the source connection (the message "Succeeded in connecting to servers" is printed), but it does not deliver any messages.
      The same happens if messages are sent to a queue on the server B and should be bridged to a queue on the server A.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  gaohoward Howard Gao
                  Reporter:
                  pualsa Alexei Sadovnikov
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: