Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-16990

[GSS](7.2.z) Set bridgeName while creating JMSBridge on server

XMLWordPrintable

      Set bridgeName while creating JMSBridge on server

      When JMS bridge get reconnected after network issue the logs contains the default bridgeName i.e "N/A"

      14:57:52,127 WARN  [org.apache.activemq.artemis.jms.bridge] (Thread-100) AMQ342010: Failed to connect JMS Bridge N/A: javax.jms.JMSException: Failed to create session factory
      	at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnectionInternal(ActiveMQConnectionFactory.java:846)
      	at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:282)
      	at org.apache.activemq.artemis.jms.bridge.impl.JMSBridgeImpl.createConnection(JMSBridgeImpl.java:999)
      	at org.apache.activemq.artemis.jms.bridge.impl.JMSBridgeImpl.setupJMSObjects(JMSBridgeImpl.java:1165)
      	at org.apache.activemq.artemis.jms.bridge.impl.JMSBridgeImpl.setupJMSObjectsWithRetry(JMSBridgeImpl.java:1268)
      	at org.apache.activemq.artemis.jms.bridge.impl.JMSBridgeImpl.access$2500(JMSBridgeImpl.java:74)
      	at org.apache.activemq.artemis.jms.bridge.impl.JMSBridgeImpl$FailureHandler.run(JMSBridgeImpl.java:1769)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: ActiveMQNotConnectedException[errorType=NOT_CONNECTED message=AMQ219007: Cannot connect to server(s). Tried with all available servers.]
      	at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:797)
      	at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnectionInternal(ActiveMQConnectionFactory.java:844)
      	... 9 more
      
      

      And reconnect message

      14:57:53,025 INFO  [org.apache.activemq.artemis.jms.bridge] (Thread-100) AMQ341002: JMSBridge N/A succeeded in connecting to servers
      

      bridgeName will be helpful to find the bridge having the issue in multi JMS Bridge scenario.

            ehugonne1@redhat.com Emmanuel Hugonnet
            rhn-support-shsingh Shailendra Singh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: