To get expected result, I followed below two steps :- 

1. I observed log files that shows which hint towards some corrupt or
partial deployed ActiveMQ. SO, I took back up and reinstall the ActiveMQ

2. Below are my final changes in activemq.xml 
 
   <destinationInterceptors>
            <virtualDestinationInterceptor>
               <virtualDestinations>
                  <compositeQueue name="exitingqueue">
                      <forwardTo>
                        <queue physicalName="newqueue"/>
                      </forwardTo>
                   </compositeQueue>
                </virtualDestinations>
            </virtualDestinationInterceptor>
        </destinationInterceptors>

        <networkConnectors>
             <networkConnector name="nameofqueue"
uri="static:(tcp://Ipadress:61616)">
                <staticallyIncludedDestinations>
                    <queue physicalName="newqueue"/>
                </staticallyIncludedDestinations>
             </networkConnector>
        </networkConnectors>




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

Reply via email to