activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Optimus <argmishra....@gmail.com>
Subject Re: Same messages to new queue with new destination
Date Fri, 07 Apr 2017 05:52:57 GMT
@Tim Thanks for sugegstions

The way I have achieved this is

Step 1:- Making a new queue which take data of existing queue

<destinationInterceptors>
<virtualDestinationInterceptor><virtualDestinations>
<compositeQueue name="oldqueuename" forwardOnly="false">
<forwardTo><queue physicalName="newqueuename"/>
</forwardTo>
</compositeQueue></virtualDestinations>
</virtualDestinationInterceptor>
</destinationInterceptors>

Step 2 :- Adding consumer for newly created queue

<networkConnectors>
<networkConnector uri="static:(tcp://machinenameorip:portnumberfor tcp)"
staticBridge="true"><staticallyIncludedDestinations>
<queue physicalName="newqueuename"/>
</staticallyIncludedDestinations>
</networkConnector>
</networkConnectors> 



--
View this message in context: http://activemq.2283324.n4.nabble.com/Same-messages-to-new-queue-with-new-destination-tp4724608p4724696.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message