Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-12140

Set bridgeName while creating JMSBridge on server

    Details

    • Steps to Reproduce:
      Hide

      1. Create a JMS Bridge between server and external broker.
      2. Shutdown the external broker and observe the logs.

      Show
      1. Create a JMS Bridge between server and external broker. 2. Shutdown the external broker and observe the logs.

      Description

      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:07:56,933 WARN  [org.apache.activemq.artemis.jms.bridge] (Thread-109) 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:1120)
      	at org.apache.activemq.artemis.jms.bridge.impl.JMSBridgeImpl.setupJMSObjects(JMSBridgeImpl.java:1286)
      	at org.apache.activemq.artemis.jms.bridge.impl.JMSBridgeImpl.setupJMSObjectsWithRetry(JMSBridgeImpl.java:1392)
      	at org.apache.activemq.artemis.jms.bridge.impl.JMSBridgeImpl.access$2800(JMSBridgeImpl.java:77)
      	at org.apache.activemq.artemis.jms.bridge.impl.JMSBridgeImpl$FailureHandler.run(JMSBridgeImpl.java:1902)
      	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:795)
      	at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnectionInternal(ActiveMQConnectionFactory.java:844)
      	... 9 more
      

      And reconenct message.

      14:07:57,834 INFO  [org.apache.activemq.artemis.jms.bridge] (Thread-109) AMQ341001: JMS Bridge N/A succeeded in reconnecting to servers
      

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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ehugonnet Emmanuel Hugonnet
                  Reporter:
                  rhn-support-shsingh Shailendra Singh
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: