Jms-bridge to external AMQ not working . queue not found

Latest response

Hi,

I get NameNotFoundException when trying to connect to the queue at the external broker.

2020-07-07 02:40:17,944 WARN  [org.apache.activemq.artemis.jms.bridge] (Thread-117) AMQ342010: Failed to connect JMS Bridge my-jms-bridge: javax.naming.NameNotFoundException: CoordSend
        at org.apache.activemq.artemis.jndi.ReadOnlyContext.lookup(ReadOnlyContext.java:236)
        at javax.naming.InitialContext.lookup(InitialContext.java:417)
        at javax.naming.InitialContext.lookup(InitialContext.java:417)
        at org.apache.activemq.artemis.jms.bridge.impl.JNDIFactorySupport.createObject(JNDIFactorySupport.java:46)
        at org.apache.activemq.artemis.jms.bridge.impl.JNDIDestinationFactory.createDestination(JNDIDestinationFactory.java:32)
        at org.apache.activemq.artemis.jms.bridge.impl.JMSBridgeImpl.setupJMSObjects(JMSBridgeImpl.java:1210)

standalone-full.xml

 <jms-bridge name="my-jms-bridge" module="org.apache.activemq.artemis" quality-of-service="AT_MOST_ONCE" failure-retry-interval="500" max-retries="1" max-batch-size="10" max-batch-time="100">
                <source connection-factory="ConnectionFactory" destination="jboss/jms/queue/CoordSend">
                    <source-context/>
                </source>
                <target connection-factory="ConnectionFactory" destination="CoordSend">
                    <target-context>
                        <property name="java.naming.factory.initial" value="org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory"/>
                        <property name="java.naming.provider.url" value="tcp://localhost:61616"/>
                    </target-context>
                </target>
            </jms-bridge>

Should I use some other module? Or should I use some other connection-factory?

Please advice.

Best regards,
Fredrik

Responses