I have to push messages from one jobss server and consume from another jboss server. For that I used jms bridge.
Added jms bridge configuration under </hornetq-server> tag in standalone-full.xml and also referred dependencies via module.
<jms-bridge name="simpleBridge" module="org.jboss.messaging">
<source>
<connection-factory name="ConnectionFactory"/>
<destination name="java:/simpleSOurceQ"/>
</source>
<target>
<connection-factory name="RemoteConnectionFactory"/>
<destination name="/queue/simpleTargetQ"/>
<context>
<property key="java.naming.factory.initial" value="org.jboss.naming.remote.client.InitialContextFactory"/>
<property key="java.naming.provider.url" value="remote://TARGET_URL:5445"/>
</context>
</target>
<quality-of-service>DUPLICATES_OK</quality-of-service>
<failure-retry-interval>500</failure-retry-interval>
<max-retries>1</max-retries>
<max-batch-size>500</max-batch-size>
<max-batch-time>500</max-batch-time>
<add-messageID-in-header>true</add-messageID-in-header>
</jms-bridge>
Deployment time, getting below ERROR in jboss,
ERROR LOG : ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014612: Operation ("add") failed - address: ([ ("subsystem" => "messaging"), ("jms-bridge" => "simpleBridge") ]) - failure description: {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.messaging.jms-bridge.simpleBridge is missing [jboss.naming.context.java.simpleSourceQ]"]}
How to resolve this?
or Is there anyway to achieve this?