@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.

Reply via email to