Thanks Dejan for the reply. I am not sure on camel route and need to check
that. For now I have used configuration as below. What I am doing is - I am
taking data from remote queue and pushing to a Topic and all my consumers
are subscribed to this topic. Now the problem is - I am having duplicate
messages for a customer and I am not sure how to handle this . Any idea ?

<bean id="remoteFactory"
class="org.apache.activemq.ActiveMQConnectionFactory">
    <property name=&quot;brokerURL&quot;
value=&quot;&lt;remote-jms-url&quot; />
  </bean>

  <bean id="localFactory"
class="org.apache.activemq.ActiveMQConnectionFactory">
    <property name=&quot;brokerURL&quot;
value=&quot;&lt;local-broker-jms-url>" />
  </bean>

  <broker xmlns="http://activemq.apache.org/schema/core"; id="localbroker"
brokerName="localBroker" persistent="false">

    <jmsBridgeConnectors>
     <jmsQueueConnector outboundQueueConnectionFactory="#remoteFactory"> 
        <inboundQueueBridges>
          <inboundQueueBridge inboundQueueName=&quot;&lt;remote-Q-name>"
localQueueName="<local-virtual-Q-name>" />
        </inboundQueueBridges>
      </jmsQueueConnector>
    </jmsBridgeConnectors>

    <transportConnectors>
      <transportConnector uri=&quot;&lt;local-broker-jms-url>" />
    </transportConnectors>
    
    <destinationInterceptors>
      <virtualDestinationInterceptor>
        <virtualDestinations>
          <compositeQueue name=&quot;&lt;local-virtual-Q-name>">
            <forwardTo>
              <topic physicalName=&quot;&lt;Local-topic-name>" />
            </forwardTo>
          </compositeQueue>
        </virtualDestinations>
      </virtualDestinationInterceptor>
    </destinationInterceptors>
  
</broker>


--
View this message in context: 
http://activemq.2283324.n4.nabble.com/Remote-Queue-to-Local-Many-quques-or-Local-Topic-tp4653598p4653645.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to