Local JMS queue does not receive messages from foreign broker over JMS bridge

Solution Unverified - Updated -

Issue

  • A JMS bridge connects to a remote message provider and although we see messages being consumed from the remote source queue they never appear on the local target queue.

  • The log contains the following:

    2020-09-03 14:53:30,308 WARN  [org.apache.activemq.artemis.jms.bridge] (Thread-109) AMQ342009: JMS Bridge failed to send + acknowledge batch, closing JMS objects: javax.jms.InvalidDestinationException: Foreign destination queue://<queue-name>?targetClient=1
            at org.apache.activemq.artemis.jms.client.ActiveMQMessage.setJMSReplyTo(ActiveMQMessage.java:358)
            at org.apache.activemq.artemis.jms.client.ActiveMQMessage.<init>(ActiveMQMessage.java:264)
            at org.apache.activemq.artemis.jms.client.ActiveMQTextMessage.<init>(ActiveMQTextMessage.java:63)
            at org.apache.activemq.artemis.jms.client.ActiveMQMessageProducer.doSendx(ActiveMQMessageProducer.java:423)
            at org.apache.activemq.artemis.jms.client.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:201)
            at org.apache.activemq.artemis.jms.bridge.impl.JMSBridgeImpl.sendMessages(JMSBridgeImpl.java:1453)
            at org.apache.activemq.artemis.jms.bridge.impl.JMSBridgeImpl.sendBatchNonTransacted(JMSBridgeImpl.java:1276)
            at org.apache.activemq.artemis.jms.bridge.impl.JMSBridgeImpl.sendBatch(JMSBridgeImpl.java:1251)
            at org.apache.activemq.artemis.jms.bridge.impl.JMSBridgeImpl.access$1500(JMSBridgeImpl.java:75)
            at org.apache.activemq.artemis.jms.bridge.impl.JMSBridgeImpl$BatchTimeChecker.run(JMSBridgeImpl.java:1794)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
            at java.lang.Thread.run(Thread.java:748)1
    

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6
    • 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In